3 svnuri="$(invirt-getconf svn.uri)"
7 echo " usage: invirt-build-release package_name [package_name [...]]"
12 rm -rf build-release/$package
13 svn export $svnuri/trunk/packages/$package build-release/$package
14 cd build-release/$package
16 eval $(perl -ne 'print if s/^(Version|Source|Distribution): /\1=/' \
17 <(dpkg-parsechangelog))
18 dpkg-buildpackage -us -uc -rfakeroot -S
21 sed -ne 's/^Architecture: //p' ${Source}_${Version}.dsc | while read; do
28 echo "invirt-build-release: arch '$Architecture' unimplemented" >&2
32 if [ $arch_any -eq 0 ]; then
33 sbuild -d $distribution --arch-all ${Source}_${Version}.dsc
35 sbuild -d $distribution --arch amd64 --arch-all ${Source}_${Version}.dsc
36 sbuild -d $distribution --arch i386 ${Source}_${Version}.dsc
39 if ! svn ls $svnuri/package_tags/$Source >/dev/null 2>&1; then
40 svn mkdir $svnuri/package_tags/$Source \
41 -m "Create package tags directory"
43 if ! svn ls $svnuri/package_tags/$Source/$Version >/dev/null 2>&1; then
44 svn cp $svnuri/trunk/packages/$package $svnuri/package_tags/$Source/$Version \
45 -m "Tag $Version of $Source"
47 echo "$(basename $0): tag already exists, not making again"
50 [ $Distribution = 'unstable' ] \
51 || echo "$(basename $0): warning: Distribution is $Distribution, script expects unstable"
52 changesfile=`pwd`/${Source}_*${Version}*.changes
53 for i in $changesfile; do
54 reprepro-env include unstable $i
55 reprepro-env copy stable unstable $(sed -ne 's/^Binary: //p' $i)
57 reprepro-env copy stable unstable $Source
60 rm -rf build-release/$package