Last change
on this file since 420 was
317,
checked in by ecprice, 17 years ago
|
Update sx-buid-release for shallower directory structure.
|
-
Property svn:executable set to
*
|
File size:
856 bytes
|
Rev | Line | |
---|
[16] | 1 | #!/bin/bash |
---|
[298] | 2 | svnuri=`svn info | sed -n 's/^Repository Root: //p'` |
---|
[10] | 3 | |
---|
| 4 | set -e |
---|
| 5 | if [ $# -ne 1 ] ; then |
---|
| 6 | echo " usage: sx-build-release trunk/packages/package_name" |
---|
| 7 | exit 1 |
---|
| 8 | fi |
---|
| 9 | |
---|
| 10 | if [ -d build-release ] ; then |
---|
| 11 | echo "a previous build release directory exists; please clean up" |
---|
| 12 | exit 1 |
---|
| 13 | fi |
---|
| 14 | |
---|
| 15 | package=$1 |
---|
[317] | 16 | svn export $svnuri/$package build-release/`basename $package` |
---|
[10] | 17 | olddir=`pwd` |
---|
| 18 | cd build-release/`basename $package` |
---|
[16] | 19 | eval `perl '-F:\s+' -lane 'print $F[0]."=".$F[1] if /^Version|^Source|^Distribution/' \ |
---|
| 20 | <(dpkg-parsechangelog)` |
---|
[10] | 21 | |
---|
[16] | 22 | |
---|
[10] | 23 | dpkg-buildpackage -us -uc -rfakeroot |
---|
[16] | 24 | svn mkdir $svnuri/package_tags/$Source -m "Create package tags directory" ||true |
---|
[12] | 25 | svn cp $svnuri/$package $svnuri/package_tags/$Source/$Version -m "Tag $Version of $Source" |
---|
[25] | 26 | cd .. |
---|
[29] | 27 | reprepro-env include $Distribution `pwd`/${Source}_*${Version}*.changes |
---|
[10] | 28 | |
---|
| 29 | cd $olddir |
---|
| 30 | rm -rf build-release |
---|
Note: See
TracBrowser
for help on using the repository browser.