From b7797f9e104b538eaf021c797287b11d35b6ef4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Tue, 10 Apr 2012 11:39:09 +0200 Subject: ALlow to set the output directory via GIT_PBUILDER_OUTPUT_DIR Helps with #657277 --- bin/git-pbuilder | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/git-pbuilder b/bin/git-pbuilder index 6bd7e020..fc0f48c6 100644 --- a/bin/git-pbuilder +++ b/bin/git-pbuilder @@ -76,6 +76,7 @@ fi # 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. @@ -244,7 +245,7 @@ fi 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="$?" @@ -399,6 +400,10 @@ contents of this variable will undergo shell expansion, so any arguments 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 -- cgit v1.2.3