Skip to content

Commit 61dc29f

Browse files
authored
Merge pull request #8239 from ggouaillardet/topic/OPAL_GET_VERSION
configury: fix OPAL_GET_VERSION
2 parents 3edd62e + 930d3c4 commit 61dc29f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

config/opal_get_version.m4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ dnl Copyright (c) 2004-2005 The Regents of the University of California.
1212
dnl All rights reserved.
1313
dnl Copyright (c) 2008-2020 Cisco Systems, Inc. All rights reserved.
1414
dnl Copyright (c) 2014 Intel, Inc. All rights reserved.
15-
dnl Copyright (c) 2014 Research Organization for Information Science
16-
dnl and Technology (RIST). All rights reserved.
15+
dnl Copyright (c) 2014-2020 Research Organization for Information Science
16+
dnl and Technology (RIST). All rights reserved.
1717
dnl $COPYRIGHT$
1818
dnl
1919
dnl Additional copyrights may follow
@@ -80,7 +80,7 @@ m4_define([OPAL_GET_VERSION],[
8080

8181
# If we're in a git repo and we found the git command, use
8282
# git describe to get the repo rev
83-
if test -d "$srcdir/.git" && test $git_happy -eq 1; then
83+
if test -r "$srcdir/.git" && test $git_happy -eq 1; then
8484
if test "$srcdir" != "`pwd`"; then
8585
git_save_dir=`pwd`
8686
cd "$srcdir"
@@ -91,7 +91,7 @@ m4_define([OPAL_GET_VERSION],[
9191
$2_REPO_REV=`git describe --tags --always`
9292
fi
9393
else
94-
$2_REPO_REV=date`$srcdir/getdate.sh '+%Y-%m-%d'`
94+
$2_REPO_REV=`$srcdir/config/getdate.sh '+%Y-%m-%d'`
9595
fi
9696
fi
9797

0 commit comments

Comments
 (0)