source: trunk/debathena/scripts/all-schroots @ 22748

Revision 22748, 798 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# 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
16if [ "$1" = "-A" ]; then
17
18shift
19prog=$1; shift
20for code in "$DEBIAN_CODES"; do
21    if [ "$code" = "sarge" ]; then
22        $prog sarge-i386-sbuild "$@"
23    else
24        $prog ${code}-amd64-sbuild "$@"
25    fi
26done
27
28else
29
30prog=$1; shift
31
32for code in "$DEBIAN_CODES"; do
33    if [ "$code" = "sarge" ]; then
34        $prog sarge-i386-sbuild-source "$@"
35    else
36        $prog ${code}-i386-sbuild-source "$@"
37        $prog ${code}-amd64-sbuild-source "$@"
38    fi
39done
40
41fi
Note: See TracBrowser for help on using the repository browser.