Ignore:
Timestamp:
Apr 26, 2008, 11:14:59 PM (17 years ago)
Author:
price
Message:

streamline usage of sx-build-release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-dev/sx-build-release

    r464 r466  
    44set -e
    55if  [ $# -ne 1 ] ; then
    6         echo " usage: sx-build-release trunk/packages/package_name"
     6        echo " usage: sx-build-release package_name"
    77        exit 1
    88fi
    99
    10 if [ -d build-release ] ; then
    11     echo "a previous build release directory exists; please clean up"
    12     exit 1
    13     fi
    14 
    1510package=$1
    16 svn export $svnuri/$package build-release/`basename $package`
    17 olddir=`pwd`
    18 cd build-release/`basename $package`
     11rm -rf build-release/$package
     12svn export $svnuri/trunk/packages/$package build-release/$package
     13cd build-release/$package
    1914
    2015eval  `perl '-F:\s+' -lane 'print  $F[0]."=".$F[1] if /^Version|^Source|^Distribution/' \
     
    2823fi
    2924if ! svn ls $svnuri/package_tags/$Source/$Version >/dev/null 2>&1; then
    30   svn cp $svnuri/$package $svnuri/package_tags/$Source/$Version \
     25  svn cp $svnuri/trunk/packages/$package $svnuri/package_tags/$Source/$Version \
    3126      -m "Tag $Version of $Source"
    3227else
     
    3530
    3631cd ..
    37 reprepro-env include $Distribution  `pwd`/${Source}_*${Version}*.changes
     32reprepro-env include unstable `pwd`/${Source}_*${Version}*.changes
     33reprepro-env include stable   `pwd`/${Source}_*${Version}*.changes
    3834
    39 cd $olddir
     35cd ..
    4036rm -rf build-release
Note: See TracChangeset for help on using the changeset viewer.