source: trunk/packages/sipb-xen-dev/sipb-xen-dev/sx-build-release @ 58

Last change on this file since 58 was 56, checked in by hartmans, 17 years ago

Use svn export not co so we don't get svn directories installed

  • Property svn:executable set to *
File size: 831 bytes
RevLine 
[16]1#!/bin/bash
[10]2svnuri=file:///afs/sipb.mit.edu/project/xen/svn
3
4set -e
5if  [ $# -ne 1 ] ; then
6        echo " usage: sx-build-release trunk/packages/package_name"
7        exit 1
8fi
9
10if [ -d build-release ] ; then
11    echo "a previous build release directory exists; please clean up"
12    exit 1
13    fi
14
15package=$1
[56]16svn export $svnuri/$package build-release
[10]17olddir=`pwd`
18cd build-release/`basename $package`
[16]19eval  `perl '-F:\s+' -lane 'print  $F[0]."=".$F[1] if /^Version|^Source|^Distribution/' \
20    <(dpkg-parsechangelog)`
[10]21
[16]22
[10]23dpkg-buildpackage -us -uc -rfakeroot
[16]24svn mkdir $svnuri/package_tags/$Source -m "Create package tags directory" ||true
[12]25svn cp  $svnuri/$package $svnuri/package_tags/$Source/$Version -m "Tag $Version of $Source"
[25]26cd ..
[29]27 reprepro-env include $Distribution  `pwd`/${Source}_*${Version}*.changes
[10]28
29cd $olddir
30rm -rf build-release
Note: See TracBrowser for help on using the repository browser.