diff --git a/configure b/configure index ddd007604d2..2af08a17bfc 100755 --- a/configure +++ b/configure @@ -1300,8 +1300,8 @@ LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'` GRASS_VERSION_GIT="exported" # get git short hash + date of last change in GRASS headers # (and anything else in include) -GRASS_HEADERS_GIT_HASH=`date -u -Iseconds` -GRASS_HEADERS_GIT_DATE=`date -u -Iseconds` +GRASS_HEADERS_GIT_HASH=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'` +GRASS_HEADERS_GIT_DATE=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'` # Extract the first word of "git", so it can be a program name with args. set dummy git; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 @@ -1342,11 +1342,11 @@ if test "$GIT" != "no" ; then fi GRASS_HEADERS_GIT_HASH=`$GIT log -1 --pretty=format:"%h" -- "${SRCDIR}/include" 2>/dev/null` if test -z "$GRASS_HEADERS_GIT_HASH"; then - GRASS_HEADERS_GIT_HASH=`date -u -Iseconds` + GRASS_HEADERS_GIT_HASH=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'` fi - GRASS_HEADERS_GIT_DATE=`date -d $($GIT log -1 --pretty=format:"%cI" -- "${SRCDIR}/include") -u -Iseconds` 2>/dev/null + GRASS_HEADERS_GIT_DATE=`date -d $($GIT log -1 --pretty=format:"%cI" -- "${SRCDIR}/include") -u +%FT%T%z | sed 's/\(..\)$/:\1/'` 2>/dev/null if test -z "$GRASS_HEADERS_GIT_DATE"; then - GRASS_HEADERS_GIT_DATE=`date -u -Iseconds` + GRASS_HEADERS_GIT_DATE=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'` fi fi diff --git a/configure.in b/configure.in index 3e75a79c0ec..a55b0d7e819 100644 --- a/configure.in +++ b/configure.in @@ -129,8 +129,8 @@ changequote([,]) GRASS_VERSION_GIT="exported" # get git short hash + date of last change in GRASS headers # (and anything else in include) -GRASS_HEADERS_GIT_HASH=`date -u -Iseconds` -GRASS_HEADERS_GIT_DATE=`date -u -Iseconds` +GRASS_HEADERS_GIT_HASH=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'` +GRASS_HEADERS_GIT_DATE=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'` AC_PATH_PROG(GIT, git, no) if test "$GIT" != "no" ; then GRASS_VERSION_GIT=`$GIT rev-parse --short HEAD 2>/dev/null` @@ -139,11 +139,11 @@ if test "$GIT" != "no" ; then fi GRASS_HEADERS_GIT_HASH=`$GIT log -1 --pretty=format:"%h" -- "${SRCDIR}/include" 2>/dev/null` if test -z "$GRASS_HEADERS_GIT_HASH"; then - GRASS_HEADERS_GIT_HASH=`date -u -Iseconds` + GRASS_HEADERS_GIT_HASH=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'` fi - GRASS_HEADERS_GIT_DATE=`date -d $($GIT log -1 --pretty=format:"%cI" -- "${SRCDIR}/include") -u -Iseconds` 2>/dev/null + GRASS_HEADERS_GIT_DATE=`date -d $($GIT log -1 --pretty=format:"%cI" -- "${SRCDIR}/include") -u +%FT%T%z | sed 's/\(..\)$/:\1/'` 2>/dev/null if test -z "$GRASS_HEADERS_GIT_DATE"; then - GRASS_HEADERS_GIT_DATE=`date -u -Iseconds` + GRASS_HEADERS_GIT_DATE=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'` fi fi