6 Usage: id-pbuild-root.sh [OPTIONS]
13 This script is should be called with root privilege. It is meant to be
14 called by id-pbuild.sh.
19 while test $# -gt 0; do
21 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
45 PBUILDER=/usr/sbin/pbuilder
47 if test -z "$dist" -o -z "$arch"; then
48 echo "dist and arch must be given"
51 rm -fr ${dist}-${arch}
53 if test ! -f $HOME/.pbuilderrc; then
54 echo "$HOME/.pbuilderrc missing"
58 if test ! -f /var/cache/pbuilder/${dist}-${arch}-base.tgz; then
59 DIST=$dist ARCH=$arch $PBUILDER --create
61 DIST=$dist ARCH=$arch $PBUILDER --update --override-config
62 DIST=$dist ARCH=$arch $PBUILDER --build $dsc