Revision 23072,
859 bytes
checked in by ghudson, 16 years ago
(diff) |
In daupload-release and sbuildhack, add support for a ./nobuild file
specifying distributions not to build a package for. For now, nobuild
files will live in the build parent directory and not be versioned.
|
-
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 | |
---|
7 | # This script us normally run as "da sbuildhack filename.dsc". |
---|
8 | |
---|
9 | # This script will skip dists listed in ./nobuild. |
---|
10 | |
---|
11 | usage() { |
---|
12 | echo "Usage: $0 <dist>-<arch> ..." >&2 |
---|
13 | exit 1 |
---|
14 | } |
---|
15 | |
---|
16 | . $(dirname "$0")/debian-versions.sh |
---|
17 | |
---|
18 | dist_arch=$1; shift |
---|
19 | if [ -z "$dist_arch" ]; then usage; fi |
---|
20 | IFS=- read dist arch <<EOF |
---|
21 | $dist_arch |
---|
22 | EOF |
---|
23 | if [ -z "$dist" ] || [ -z "$arch" ]; then usage; fi |
---|
24 | |
---|
25 | if [ -e nobuild ] && fgrep -q "$dist" nobuild; then |
---|
26 | echo "Skipping $dist since it is listed in ./nobuild." |
---|
27 | exit |
---|
28 | fi |
---|
29 | |
---|
30 | export NMUTAG=`gettag "$dist"` |
---|
31 | perl -I"$(dirname "$0")" -MSbuildHack \ |
---|
32 | /usr/bin/sbuild --binNMU=171717 --make-binNMU="Build with sbuild." \ |
---|
33 | -d "$dist" --arch="$arch" --apt-update -v "$@" |
---|
Note: See
TracBrowser
for help on using the repository browser.