source: trunk/debathena/scripts/daschroot @ 25118

Revision 25118, 509 bytes checked in by geofft, 13 years ago (diff)
daschroot: Let chroot-sources know what dist we want
  • Property svn:executable set to *
Line 
1#!/bin/sh
2#
3# Gives you an interactive shell with Debathena repositories configured
4
5if [ -z "$1" ] || [ -z "$2" ]; then
6    echo "usage: daschroot <dist> <arch>"
7    exit 1
8fi
9dist="$1"
10arch="$2"
11shift 2
12
13if ! schroot -c "$dist-$arch-sbuild" -i >/dev/null; then
14    exit $?
15fi
16
17session=$(schroot -c "$dist-$arch-sbuild" -b)
18schroot -c "$session" -r -u root -- env SBUILD_BUILD_CONF_DISTRIBUTION="$dist" "$(readlink -f "$(dirname "$0")/chroot-sources")"
19schroot -c "$session" -r "$@"
20schroot -c "$session" -e
Note: See TracBrowser for help on using the repository browser.