summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-09-21 22:32:56 -0400
committermidipix <writeonce@midipix.org>2016-09-21 22:32:56 -0400
commitaaf3aced55a3dba302ab4a25559607be8703c563 (patch)
tree1130fce015e05cd5a246ddc988a882f127221c52 /configure
parentaf797c7e5da70ac3e90b7da86dc409a27112bcb5 (diff)
downloadbcparser-aaf3aced55a3dba302ab4a25559607be8703c563.tar.bz2
bcparser-aaf3aced55a3dba302ab4a25559607be8703c563.tar.xz
build system: when building from a git repo, explicitly depend on .git/index.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index 83de4b6..98efb4f 100755
--- a/configure
+++ b/configure
@@ -138,10 +138,10 @@ common_defaults()
# git
if [ -n "$mb_source_dir" ]; then
if [ -d "$mb_source_dir/.git" ]; then
- mb_git_reference_dir="\$(SOURCE_DIR)/.git"
+ mb_git_reference_index="\$(SOURCE_DIR)/.git/index"
fi
elif [ -d "$mb_project_dir/.git" ]; then
- mb_git_reference_dir="\$(PROJECT_DIR)/.git"
+ mb_git_reference_index="\$(PROJECT_DIR)/.git/index"
fi
# project
@@ -390,7 +390,7 @@ config_copy()
-e 's^@nickname@^'"$mb_nickname"'^g' \
-e 's^@project_dir@^'"$mb_project_dir"'^g' \
-e 's^@source_dir@^'"$mb_source_dir"'^g' \
- -e 's^@git_reference_dir@^'"$mb_git_reference_dir"'^g' \
+ -e 's^@git_reference_index@^'"$mb_git_reference_index"'^g' \
-e 's^@custom_install_headers@^'"$mb_custom_install_headers"'^g' \
-e 's^@avoid_version@^'"$mb_avoid_version"'^g' \
\