#! /bin/bash # this is sourced from pbuilder packages to process the optional parameters. . /etc/pbuilderrc while [ -n $1 ]; do case "$1" in --basetgz) BASETGZ=$(realink -f "$2"); shift; shift; ;; --buildplace) BUILDPLACE=$(readlink -f "$2"); shift; shift; ;; --mirror) MIRROR="$2"; shift; shift; ;; --http-proxy) export http_proxy="$2"; shift; shift; ;; --distribution) DISTRIBUTION="$2"; shift; shift; ;; --help) cat <