# Default options come from the environment.
OPTIONS="$GIT_PBUILDER_OPTIONS"
+OUTPUT_DIR="${GIT_PBUILDER_OUTPUT_DIR:-../}"
# How we handle options depends on what type of builder we're using. Ignore
# options if $GIT_PBUILDER_AUTOCONF is set to no.
if [ no = "$GIT_PBUILDER_AUTOCONF" ] ; then
pdebuild --pbuilder "$BUILDER" --debbuildopts "$DEBBUILDOPTS" -- $OPTIONS
else
- pdebuild --buildresult .. --pbuilder "$BUILDER" \
+ pdebuild --buildresult $OUTPUT_DIR --pbuilder "$BUILDER" \
--debbuildopts "$DEBBUILDOPTS" -- $OPTIONS
fi
status="$?"
containing shell metacharacters or whitespace need to be quoted in the
value of the environment variable.
+=item GIT_PBUILDER_OUTPUT_DIR
+
+Where pbuilder puts the build result. Default is '..'.
+
=item PBUILDER_BASE
Set this environment variable to change the defualt location for the