Revision 22978,
622 bytes
checked in by tabbott, 16 years ago
(diff) |
Use the new --apt-update feature of schroot 1.20 to simplify sbuildhack.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[22687] | 1 | #!/bin/sh |
---|
| 2 | |
---|
[22688] | 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 | |
---|
[22687] | 7 | usage() { |
---|
| 8 | echo "Usage: $0 <dist>-<arch> ..." >&2 |
---|
| 9 | exit 1 |
---|
| 10 | } |
---|
| 11 | |
---|
[22748] | 12 | . $(dirname "$0")/debian-versions.sh |
---|
| 13 | |
---|
[22687] | 14 | dist_arch=$1; shift |
---|
| 15 | if [ -z "$dist_arch" ]; then usage; fi |
---|
| 16 | IFS=- read dist arch <<EOF |
---|
| 17 | $dist_arch |
---|
| 18 | EOF |
---|
| 19 | if [ -z "$dist" ] || [ -z "$arch" ]; then usage; fi |
---|
[22748] | 20 | export NMUTAG=`gettag "$dist"` |
---|
[22687] | 21 | perl -I"$(dirname "$0")" -MSbuildHack \ |
---|
| 22 | /usr/bin/sbuild --binNMU=171717 --make-binNMU="Build with sbuild." \ |
---|
[22978] | 23 | -d "$dist" --arch="$arch" --apt-update -v "$@" |
---|
Note: See
TracBrowser
for help on using the repository browser.