Changeset 1860 for trunk/packages/invirt-dev/invirt-build-release
- Timestamp:
- Dec 20, 2008, 1:58:21 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-dev/invirt-build-release
r1859 r1860 13 13 cd build-release/$package 14 14 15 eval `perl '-F:\s+' -lane 'print $F[0]."=".$F[1] if /^Version|^Source|^Distribution/' \ 16 <(dpkg-parsechangelog)` 17 eval $(perl '-F:\s+' -lane 'print $F[0]."=".$F[1] if /^Binary|Architecture/' <"../${Source}_${Version}.dsc") 18 15 eval $(perl -ne 'print if s/^(Version|Source|Distribution): /\1=/' \ 16 <(dpkg-parsechangelog)) 19 17 dpkg-buildpackage -us -uc -rfakeroot -S 20 18 cd .. 19 eval $(perl -ne 'print if s/^(Architecture): /\1=/' ${Source}_${Version}.dsc) 21 20 case $Architecture in 22 21 all) 23 sbuild -A -d hardy "${Source}_${Version}.dsc";;22 sbuild -A -d hardy ${Source}_${Version}.dsc;; 24 23 any) 25 sbuild -d hardy-amd64 "${Source}_${Version}.dsc"26 sbuild -d hardy-i386 "${Source}_${Version}.dsc";;24 sbuild -d hardy-amd64 ${Source}_${Version}.dsc 25 sbuild -d hardy-i386 ${Source}_${Version}.dsc;; 27 26 *) 28 echo "invirt-build-release: arch itecture '$Architecture' not 'all' or 'any'" >&227 echo "invirt-build-release: arch '$Architecture' unimplemented" >&2 29 28 exit 1 30 29 esac … … 42 41 43 42 [ $Distribution = 'unstable' ] \ 44 || echo "$(basename $0): warning: Distribution is $ {Distribution}, script expects unstable"43 || echo "$(basename $0): warning: Distribution is $Distribution, script expects unstable" 45 44 changesfile=`pwd`/${Source}_*${Version}*.changes 46 45 for i in $changesfile; do 47 46 reprepro-env include unstable $i 48 reprepro-env copy stable unstable \ 49 $(perl '-F:\s+' -lane 'print $F[1]." " if /^Binary/' <$i) 47 reprepro-env copy stable unstable $(sed -ne 's/^Binary: //p' $i) 50 48 done 51 reprepro-env copy stable unstable $ {Source}49 reprepro-env copy stable unstable $Source 52 50 53 51 cd .. 54 rm -rf build-release 52 rm -rf build-release/$package 55 53 done
Note: See TracChangeset
for help on using the changeset viewer.