Skip to content

Commit

Permalink
fix git conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
nilason committed Feb 17, 2024
1 parent ab98b24 commit b3b4fa1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -5029,7 +5029,9 @@ if test "$GIT" != "no" ; then
if test -z "$GRASS_HEADERS_GIT_DATE"; then
GRASS_HEADERS_GIT_DATE=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'`
fi
elif test "$ac_cv_file_include_VERSION_GIT" == "yes"; then
fi
if test $GRASS_VERSION_GIT == "exported" && \
test "$ac_cv_file_include_VERSION_GIT" == "yes"; then
GRASS_HEADERS_GIT_HASH=$(sed -n 1p "${GRASS_VERSION_GIT_FILE}")
GRASS_HEADERS_GIT_DATE=$(sed -n 2p "${GRASS_VERSION_GIT_FILE}")
fi
Expand Down
4 changes: 3 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ if test "$GIT" != "no" ; then
if test -z "$GRASS_HEADERS_GIT_DATE"; then
GRASS_HEADERS_GIT_DATE=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'`
fi
elif test "$ac_cv_file_include_VERSION_GIT" == "yes"; then
fi
if test $GRASS_VERSION_GIT == "exported" && \
test "$ac_cv_file_include_VERSION_GIT" == "yes"; then
GRASS_HEADERS_GIT_HASH=$(sed -n 1p "${GRASS_VERSION_GIT_FILE}")
GRASS_HEADERS_GIT_DATE=$(sed -n 2p "${GRASS_VERSION_GIT_FILE}")
fi
Expand Down

0 comments on commit b3b4fa1

Please sign in to comment.