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

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