diff options
author | midipix <writeonce@midipix.org> | 2016-04-20 18:46:42 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-20 19:08:11 -0400 |
commit | 55cd8b050dd78aad23479ec9f4dbb3c2c9748d5c (patch) | |
tree | 1aa79abfb6a3419039dd2199a0f30e629f26669e /configure | |
parent | 21fdb8c42d57b7c8d12a83541a9d5e238deaf399 (diff) | |
download | sofort-55cd8b050dd78aad23479ec9f4dbb3c2c9748d5c.tar.bz2 sofort-55cd8b050dd78aad23479ec9f4dbb3c2c9748d5c.tar.xz |
build system: when present, use the git refdir as a version.tag dependency.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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' \ |