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

Revision 25747, 683 bytes checked in by jdreed, 12 years ago (diff)
Get rid of "dirname $0" and replace with DA_SCRIPTS_DIR, which allows overriding at run time. (Trac: #1191)
  • 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: ${DA_SCRIPTS_DIR="$(dirname "$0")"}
15. "$DA_SCRIPTS_DIR"/debian-versions.sh
16
17if [ "$1" = "-A" ]; then
18
19shift
20prog=$1; shift
21for code in $DEBIAN_CODES; do
22    $prog ${code}-amd64-sbuild -- "$@"
23done
24
25else
26
27prog=$1; shift
28
29for code in $DEBIAN_CODES; do
30    $prog ${code}-i386-sbuild-source -- "$@"
31    $prog ${code}-amd64-sbuild-source -- "$@"
32done
33
34fi
Note: See TracBrowser for help on using the repository browser.