~ubuntu-branches/ubuntu/feisty/fpc/feisty

« back to all changes in this revision

Viewing changes to debian/fixdeb

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-01-27 20:08:50 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070127200850-9mrptaqqjsx9nwa7
Tags: 2.0.4-5
* Fixed Build-Depends.
* Add myself to Uploaders in debian/control.
* Make sure that the sources are really patched before building them.
* Build unit 'libc' on powerpc too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
PACKAGEVERSION=`head -n 1 $1/changelog | awk '{ print $2 }' | tr -d '[()]'`
15
15
FPCVERSION=`echo $PACKAGEVERSION | awk -F '-' '{ print $1 }'`
16
16
DEBVERSION=`echo $PACKAGEVERSION | awk -F '-' '{ print $2 }'`
17
 
FPCCVSTAG=`echo $FPCVERSION | awk -F '.' '{ print "RELEASE_"$1"_"$2"_"$3 }'`
 
17
FPCSVNPATH=`echo $FPCVERSION | awk -F '.' '{ print "release_"$1"_"$2"_"$3 }'`
18
18
FPCTARGET="$2"
19
19
PPCBIN="$3"
20
20
 
32
32
echo 'FPCTarget     : ' $FPCTARGET
33
33
echo 'DebVersion    : ' $DEBVERSION
34
34
echo 'PPCBin        : ' $PPCBIN
35
 
echo 'CVSTag        : ' $FPCCVSTAG
 
35
echo 'SVNPath       : ' $FPCSVNPATH
36
36
 
37
37
for i in $1/*.in
38
38
do
39
39
  j=${i/%.in/}
40
 
  sed -e 's/%{fpcversion}/'$FPCVERSION'/g;s/%{packageversion}/'$PACKAGEVERSION'/g;s/%{ppcbin}/'$PPCBIN'/g;s/%{fpctarget}/'$FPCTARGET'/g;s/%{fpccvstag}/'$FPCCVSTAG'/g' $i > $j
 
40
  sed -e 's/%{fpcversion}/'$FPCVERSION'/g;s/%{packageversion}/'$PACKAGEVERSION'/g;s/%{ppcbin}/'$PPCBIN'/g;s/%{fpctarget}/'$FPCTARGET'/g;s/%{fpcsvnpath}/'$FPCSVNPATH'/g' $i > $j
41
41
done