source: package_tags/sipb-xen-dev/16/sx-build-release @ 824

Last change on this file since 824 was 466, checked in by price, 17 years ago

streamline usage of sx-build-release

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1#!/bin/bash
2svnuri=`svn info /srv/checkout | sed -n 's/^Repository Root: //p'`
3
4set -e
5if  [ $# -ne 1 ] ; then
6        echo " usage: sx-build-release package_name"
7        exit 1
8fi
9
10package=$1
11rm -rf build-release/$package
12svn export $svnuri/trunk/packages/$package build-release/$package
13cd build-release/$package
14
15eval  `perl '-F:\s+' -lane 'print  $F[0]."=".$F[1] if /^Version|^Source|^Distribution/' \
16    <(dpkg-parsechangelog)`
17
18dpkg-buildpackage -us -uc -rfakeroot
19
20if ! svn ls $svnuri/package_tags/$Source >/dev/null 2>&1; then
21  svn mkdir $svnuri/package_tags/$Source \
22      -m "Create package tags directory"
23fi
24if ! svn ls $svnuri/package_tags/$Source/$Version >/dev/null 2>&1; then
25  svn cp $svnuri/trunk/packages/$package $svnuri/package_tags/$Source/$Version \
26      -m "Tag $Version of $Source"
27else
28  echo "$(basename $0): tag already exists, not making again"
29fi
30
31cd ..
32reprepro-env include unstable `pwd`/${Source}_*${Version}*.changes
33reprepro-env include stable   `pwd`/${Source}_*${Version}*.changes
34
35cd ..
36rm -rf build-release
Note: See TracBrowser for help on using the repository browser.