mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-06-03 09:30:51 +00:00
Fixed configure.ac about abuses AC_CHECK_FILE
This commit is contained in:
parent
876662ff89
commit
df604e50fb
|
@ -273,10 +273,10 @@ dnl ----------------------------------------------
|
||||||
dnl short commit hash
|
dnl short commit hash
|
||||||
dnl ----------------------------------------------
|
dnl ----------------------------------------------
|
||||||
AC_CHECK_PROG([GITCMD], [git —version], [yes], [no])
|
AC_CHECK_PROG([GITCMD], [git —version], [yes], [no])
|
||||||
AC_CHECK_FILE([.git], [DOTGITDIR=yes], [DOTGITDIR=no])
|
AS_IF([test -d .git], [DOTGITDIR=yes], [DOTGITDIR=no])
|
||||||
|
|
||||||
AC_MSG_CHECKING([github short commit hash])
|
AC_MSG_CHECKING([github short commit hash])
|
||||||
if test “x${GITCMD}” = “xyes” -a “x${DOTGITDIR}” = “xyes”; then
|
if test "x${GITCMD}" = "xyes" -a "x${DOTGITDIR}" = "xyes"; then
|
||||||
GITCOMMITHASH=`git rev-parse --short HEAD`
|
GITCOMMITHASH=`git rev-parse --short HEAD`
|
||||||
elif test -f default_commit_hash; then
|
elif test -f default_commit_hash; then
|
||||||
GITCOMMITHASH=`cat default_commit_hash`
|
GITCOMMITHASH=`cat default_commit_hash`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user