1
1

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.
Этот коммит содержится в:
Jeff Squyres 2014-09-18 21:03:31 +00:00
родитель 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"