#! /bin/bash # this is sourced from pbuilder packages to process the optional parameters. . /etc/pbuilderrc # the default is to add a PID in the buildplace specified in the config file. BASEBUILDPLACE="$BUILDPLACE" BUILDPLACE="$BUILDPLACE/$$" while [ -n $1 ]; do case "$1" in --basetgz) BASETGZ=$(readlink -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; ;; --buildresult) BUILDRESULT=$(readlink -f "$2"); shift; shift; ;; --help) cat <