]> piware.de Git - bin.git/blob - schrootbd
Add build-devmock
[bin.git] / schrootbd
1 #!/bin/sh
2 set -e
3 schroot="$1"
4 pkg="$2"
5
6 if [ -z "$pkg" ]; then
7     echo "Usage: $0 <schroot> <srcpkg>" >&2
8     exit 1
9 fi
10
11 SESSID=$(schroot -b -c "$schroot" -n "schroot-$schroot-$pkg")
12 schroot -r -c session:$SESSID -u root -- apt-get -o Dpkg::Options::="--force-confnew" -y build-dep "$pkg"
13 echo "You will now be put into the schroot. It will NOT be cleaned up when you exit this shell!"
14 schroot -r -c session:$SESSID