mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-22 04:03:11 +00:00
Set VERSION also when the source directory is a git submodule using a ".git" file pointing to the repo. directory.
This commit is contained in:
@@ -1029,8 +1029,8 @@ dnl ============================================================================
|
||||
dnl jemalloc configuration.
|
||||
dnl
|
||||
|
||||
dnl Set VERSION if source directory has an embedded git repository.
|
||||
if test -d "${srcroot}.git" ; then
|
||||
dnl Set VERSION if source directory has an embedded git repository or is a git submodule.
|
||||
if test -e "${srcroot}.git" ; then
|
||||
git describe --long --abbrev=40 > ${srcroot}VERSION
|
||||
fi
|
||||
jemalloc_version=`cat ${srcroot}VERSION`
|
||||
|
||||
Reference in New Issue
Block a user