Revision 23044,
634 bytes
checked in by ghudson, 16 years ago
(diff) |
In all-schroots, properly iterate over $DEBIAN_CODES.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | # Usage: all-schroots [-A] PROGRAM ARGUMENTS |
---|
4 | |
---|
5 | # Runs PROGRAM over each of the source (template) build schroots, like |
---|
6 | # so: |
---|
7 | # |
---|
8 | # PROGRAM SCHROOTNAME ARGUMENTS |
---|
9 | # |
---|
10 | # If -A is specified, only runs the program over one schroot per |
---|
11 | # Debian/Ubuntu version, and ephemeral session chroots are used |
---|
12 | # instead of source chroots. |
---|
13 | |
---|
14 | . $(dirname "$0")/debian-versions.sh |
---|
15 | |
---|
16 | if [ "$1" = "-A" ]; then |
---|
17 | |
---|
18 | shift |
---|
19 | prog=$1; shift |
---|
20 | for code in $DEBIAN_CODES; do |
---|
21 | $prog ${code}-amd64-sbuild "$@" |
---|
22 | done |
---|
23 | |
---|
24 | else |
---|
25 | |
---|
26 | prog=$1; shift |
---|
27 | |
---|
28 | for code in $DEBIAN_CODES; do |
---|
29 | $prog ${code}-i386-sbuild-source "$@" |
---|
30 | $prog ${code}-amd64-sbuild-source "$@" |
---|
31 | done |
---|
32 | |
---|
33 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.