source: trunk/packages/invirt-dev/invirt-build-release @ 1628

Last change on this file since 1628 was 1486, checked in by broder, 16 years ago

In invirt-build-release, get the svn uri from the config, not from
/srv/checkout

  • Property svn:executable set to *
File size: 1.3 KB
RevLine 
[16]1#!/bin/bash
[1486]2svnuri="$(invirt-getconf svn.uri)"
[10]3
4set -e
5if  [ $# -ne 1 ] ; then
[1323]6        echo " usage: invirt-build-release package_name"
[10]7        exit 1
8fi
9
10package=$1
[466]11rm -rf build-release/$package
12svn export $svnuri/trunk/packages/$package build-release/$package
13cd build-release/$package
[464]14
[16]15eval  `perl '-F:\s+' -lane 'print  $F[0]."=".$F[1] if /^Version|^Source|^Distribution/' \
16    <(dpkg-parsechangelog)`
[10]17
[1170]18dpkg-buildpackage -us -uc -rfakeroot -S
19cd ..
20sbuild -A -d hardy-amd64 "${Source}_${Version}.dsc"
[16]21
[464]22if ! svn ls $svnuri/package_tags/$Source >/dev/null 2>&1; then
23  svn mkdir $svnuri/package_tags/$Source \
24      -m "Create package tags directory"
25fi
26if ! 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"
29else
30  echo "$(basename $0): tag already exists, not making again"
31fi
32
[470]33[ $Distribution = 'unstable' ] \
34 || echo "$(basename $0): warning: Distribution is ${Distribution}, script expects unstable"
[1172]35changesfile=`pwd`/${Source}_*${Version}*.changes
36for i in $changesfile; do
37    reprepro-env include unstable $i
38    reprepro-env copy stable unstable \
39        $(perl '-F:\s+' -lane 'print $F[1]." " if /^Binary/' <$i)
40done
41reprepro-env copy stable unstable ${Source}
[10]42
[466]43cd ..
[10]44rm -rf build-release
Note: See TracBrowser for help on using the repository browser.