summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2020-06-28 15:21:43 -0700
committerWayne Davison <wayne@opencoder.net>2020-06-28 19:42:25 -0700
commit7039d146163c4e5c4932d80d8032b0c169b53ab8 (patch)
treef4c1560dd4bc2f34c035affb2111b01ed2db6aae /configure
parentec3c9f2f5a6af532b1b5b80ed9baf477500dc8d5 (diff)
downloadrsync-7039d146163c4e5c4932d80d8032b0c169b53ab8.tar.gz
Improve the per-branch build dir support
The release script & the patch management script now require the use of an auto-build-save dir that makes it much easier to keep the generated files from melding together, and remembers the configure setup for each patch branch.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 9 insertions, 7 deletions
diff --git a/configure b/configure
index 75b9ed7c..51c3fee5 100755
--- a/configure
+++ b/configure
@@ -4,14 +4,16 @@
# then transfer control to the configure.sh script to do the real work.
dir=`dirname $0`
+if test x"$dir" = x; then
+ dir=.
+fi
-# Support automatic switching to build/$BRANCH subdirs. It's also good
-# to put packaging/make somewhere early in your $PATH if you use this!
-if test "$dir" = '.' -a ! -f Makefile -a -d build/master -a -d .git; then
- builddir=build/`git rev-parse --abbrev-ref HEAD | tr / %`
- test -d "$builddir" || mkdir "$builddir"
- cd "$builddir" || exit 1
- dir=../..
+if test "$dir" = '.'; then
+ branch=`packaging/prep-auto-dir` || exit 1
+ if test x"$branch" != x; then
+ cd build || exit 1
+ dir=..
+ fi
fi
if test ! -f configure.sh; then