2 svnuri=`svn info /srv/checkout | sed -n 's/^Repository Root: //p'`
6 echo " usage: sx-build-release trunk/packages/package_name"
10 if [ -d build-release ] ; then
11 echo "a previous build release directory exists; please clean up"
16 svn export $svnuri/$package build-release/`basename $package`
18 cd build-release/`basename $package`
20 eval `perl '-F:\s+' -lane 'print $F[0]."=".$F[1] if /^Version|^Source|^Distribution/' \
21 <(dpkg-parsechangelog)`
23 dpkg-buildpackage -us -uc -rfakeroot
25 if ! svn ls $svnuri/package_tags/$Source >/dev/null 2>&1; then
26 svn mkdir $svnuri/package_tags/$Source \
27 -m "Create package tags directory"
29 if ! svn ls $svnuri/package_tags/$Source/$Version >/dev/null 2>&1; then
30 svn cp $svnuri/$package $svnuri/package_tags/$Source/$Version \
31 -m "Tag $Version of $Source"
33 echo "$(basename $0): tag already exists, not making again"
37 reprepro-env include $Distribution `pwd`/${Source}_*${Version}*.changes