opal_get_version.m4: use better "git log" command
For when you have a git repository, this is a bit more succinct form of getting a git hash of the HEAD. This commit was SVN r32758.
Этот коммит содержится в:
родитель
5c73101a72
Коммит
0c98cf709e
@ -104,7 +104,7 @@ m4_define([OPAL_GET_VERSION],[
|
||||
# can find the "git" command.
|
||||
git --version > /dev/null 2>&1
|
||||
if test $? = 0; then
|
||||
$2_REPO_REV=git`git log -1 "$srcdir" | grep ^commit | awk '{ print $2 }'`
|
||||
$2_REPO_REV=git`git log --pretty=format:'%h' -1`
|
||||
else
|
||||
# The following is too long for Fortran
|
||||
# $2_REPO_REV="unknown hg version (hg not found); $d"
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user