summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-20 18:46:42 -0400
committermidipix <writeonce@midipix.org>2016-11-10 23:35:41 -0500
commited1185d3ba4d55054acdce66ea05663ff188a36b (patch)
treeb87db0c66c7026d60ede94efe31feed593ebbe46 /configure
parentaeacc724c2cc6280c782bec47098b36c88325572 (diff)
downloadperk-ed1185d3ba4d55054acdce66ea05663ff188a36b.tar.bz2
perk-ed1185d3ba4d55054acdce66ea05663ff188a36b.tar.xz
build system: when present, use the git refdir as a version.tag dependency.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure
index b428d13..4145c3c 100755
--- a/configure
+++ b/configure
@@ -28,6 +28,11 @@ init_vars()
. "$mb_config" || exit 2
fi
+ # git
+ if [ -d "$mb_project_dir/.git" ]; then
+ mb_git_reference_dir="\$(PROJECT_DIR)/.git"
+ fi
+
# dirs
mb_prefix=$PREFIX
mb_exec_prefix=$EXEC_PREFIX
@@ -304,6 +309,7 @@ config_copy()
{
sed -e 's^@package@^'"$mb_package"'^g' \
-e 's^@project_dir@^'"$mb_project_dir"'^g' \
+ -e 's^@git_reference_dir@^'"$mb_git_reference_dir"'^g' \
\
-e 's^@build@^'"$mb_build"'^g' \
-e 's^@host@^'"$mb_host"'^g' \