Last change
on this file since 1170 was
1170,
checked in by broder, 16 years ago
|
Update sx-build-release and reprepro-env to work with sbuild instead
of dpkg-buildpackage
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Rev | Line | |
---|
[16] | 1 | #!/bin/bash |
---|
[464] | 2 | svnuri=`svn info /srv/checkout | sed -n 's/^Repository Root: //p'` |
---|
[10] | 3 | |
---|
| 4 | set -e |
---|
| 5 | if [ $# -ne 1 ] ; then |
---|
[466] | 6 | echo " usage: sx-build-release package_name" |
---|
[10] | 7 | exit 1 |
---|
| 8 | fi |
---|
| 9 | |
---|
| 10 | package=$1 |
---|
[466] | 11 | rm -rf build-release/$package |
---|
| 12 | svn export $svnuri/trunk/packages/$package build-release/$package |
---|
| 13 | cd build-release/$package |
---|
[464] | 14 | |
---|
[16] | 15 | eval `perl '-F:\s+' -lane 'print $F[0]."=".$F[1] if /^Version|^Source|^Distribution/' \ |
---|
| 16 | <(dpkg-parsechangelog)` |
---|
[10] | 17 | |
---|
[1170] | 18 | dpkg-buildpackage -us -uc -rfakeroot -S |
---|
| 19 | cd .. |
---|
| 20 | sbuild -A -d hardy-amd64 "${Source}_${Version}.dsc" |
---|
[16] | 21 | |
---|
[464] | 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" |
---|
| 25 | fi |
---|
| 26 | if ! svn ls $svnuri/package_tags/$Source/$Version >/dev/null 2>&1; then |
---|
[466] | 27 | svn cp $svnuri/trunk/packages/$package $svnuri/package_tags/$Source/$Version \ |
---|
[464] | 28 | -m "Tag $Version of $Source" |
---|
| 29 | else |
---|
| 30 | echo "$(basename $0): tag already exists, not making again" |
---|
| 31 | fi |
---|
| 32 | |
---|
[470] | 33 | [ $Distribution = 'unstable' ] \ |
---|
| 34 | || echo "$(basename $0): warning: Distribution is ${Distribution}, script expects unstable" |
---|
[1170] | 35 | changesfile="$(ls `pwd`/${Source}_*${Version}*.changes | grep -v 'source.changes$')" |
---|
[470] | 36 | reprepro-env include unstable $changesfile |
---|
| 37 | reprepro-env copy stable unstable ${Source} \ |
---|
| 38 | $(perl '-F:\s+' -lane 'print $F[1]." " if /^Binary/' <$changesfile) |
---|
[10] | 39 | |
---|
[466] | 40 | cd .. |
---|
[10] | 41 | rm -rf build-release |
---|
Note: See
TracBrowser
for help on using the repository browser.