source: trunk/debathena/scripts/sbuildhack @ 22748

Revision 22748, 609 bytes checked in by ghudson, 17 years ago (diff)
Fixes for r22739. * debathena/scripts/da, debathena/scripts/daequivsupload, debathena/scripts/daupload-release, debathena/scripts/all-schroots: Use "." instead of "source". The latter is a csh-ism and will not work in /bin/sh on (at least) Gutsy. debathena/scripts/sbuildhack, debathena/scripts/SbuildHack.pm: Pass the NMU tag in as an environment variable, since the useful value of $0 is long gone by the time we execute a shell command inside the sbuild perl script, making it hard to find debian-versions.sh.
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3# Wrapper around sbuild.  The main purpose is to append a
4# distribution-dependent string like "~ubuntu7.10" to the binary
5# package version, using Sbuildhack.pm.
6
7usage() {
8    echo "Usage: $0 <dist>-<arch> ..." >&2
9    exit 1
10}
11
12. $(dirname "$0")/debian-versions.sh
13
14dist_arch=$1; shift
15if [ -z "$dist_arch" ]; then usage; fi
16IFS=- read dist arch <<EOF
17$dist_arch
18EOF
19if [ -z "$dist" ] || [ -z "$arch" ]; then usage; fi
20export NMUTAG=`gettag "$dist"`
21perl -I"$(dirname "$0")" -MSbuildHack \
22        /usr/bin/sbuild --binNMU=171717 --make-binNMU="Build with sbuild." \
23        -d "$dist" --arch="$arch" -v "$@"
Note: See TracBrowser for help on using the repository browser.