2 svnuri="$(invirt-getconf svn.uri)"
6 echo " usage: invirt-build-release package_name"
11 rm -rf build-release/$package
12 svn export $svnuri/trunk/packages/$package build-release/$package
13 cd build-release/$package
15 eval `perl '-F:\s+' -lane 'print $F[0]."=".$F[1] if /^Version|^Source|^Distribution/' \
16 <(dpkg-parsechangelog)`
18 dpkg-buildpackage -us -uc -rfakeroot -S
20 sbuild -A -d hardy-amd64 "${Source}_${Version}.dsc"
22 if ! svn ls $svnuri/package_tags/$Source >/dev/null 2>&1; then
23 svn mkdir $svnuri/package_tags/$Source \
24 -m "Create package tags directory"
26 if ! svn ls $svnuri/package_tags/$Source/$Version >/dev/null 2>&1; then
27 svn cp $svnuri/trunk/packages/$package $svnuri/package_tags/$Source/$Version \
28 -m "Tag $Version of $Source"
30 echo "$(basename $0): tag already exists, not making again"
33 [ $Distribution = 'unstable' ] \
34 || echo "$(basename $0): warning: Distribution is ${Distribution}, script expects unstable"
35 changesfile=`pwd`/${Source}_*${Version}*.changes
36 for i in $changesfile; do
37 reprepro-env include unstable $i
38 reprepro-env copy stable unstable \
39 $(perl '-F:\s+' -lane 'print $F[1]." " if /^Binary/' <$i)
41 reprepro-env copy stable unstable ${Source}