diff options
author | Guido Günther <agx@sigxcpu.org> | 2012-04-10 11:39:09 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-04-10 21:21:18 +0200 |
commit | b7797f9e104b538eaf021c797287b11d35b6ef4f (patch) | |
tree | e5c0d0199dfb23dc1503cbab20a62f5ac3dc6d26 /bin/git-pbuilder | |
parent | 1e68f6e3f33e0bdc62b286aa8e4f6ff4ec8cb304 (diff) | |
download | git-buildpackage-b7797f9e104b538eaf021c797287b11d35b6ef4f.tar.gz git-buildpackage-b7797f9e104b538eaf021c797287b11d35b6ef4f.tar.bz2 git-buildpackage-b7797f9e104b538eaf021c797287b11d35b6ef4f.zip |
ALlow to set the output directory via GIT_PBUILDER_OUTPUT_DIR
Helps with #657277
Diffstat (limited to 'bin/git-pbuilder')
-rw-r--r-- | bin/git-pbuilder | 7 |
1 files changed, 6 insertions, 1 deletions
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 |