Quellcode durchsuchen

* Do not cache ac_build_date.

pull/1/head
Sam Hocevar sam vor 18 Jahren
Ursprung
Commit
9428fa4d2f
1 geänderte Dateien mit 8 neuen und 8 gelöschten Zeilen
  1. +8
    -8
      configure.ac

+ 8
- 8
configure.ac Datei anzeigen

@@ -56,14 +56,14 @@ PKG_CHECK_MODULES(cucul, cucul >= 0.99.beta9,
[AC_MSG_RESULT(no)
AC_MSG_ERROR([you need libcucul version 0.99.beta9 or later])])

AC_CACHE_CHECK([for release date],
[ac_build_date],
[stamp="$(sed -ne 's/# \$Id: .*\(....-..-..\).*/\1/p;q' configure.ac)"
if date +"%e %B %Y" -d "$stamp" >/dev/null 2>&1; then
ac_build_date="$(LANG=C date +"%e %B %Y" -d "$stamp" | sed 's/^ //')"
else
ac_build_date="${stamp##*-} ${${stamp%-*}#*-} ${stamp%%-*}"
fi])
AC_MSG_CHECKING([for release date])
stamp="$(sed -ne 's/# \$Id: .*\(....-..-..\).*/\1/p;q' configure.ac)"
if date +"%e %B %Y" -d "$stamp" >/dev/null 2>&1; then
ac_build_date="$(LANG=C date +"%e %B %Y" -d "$stamp" | sed 's/^ //')"
else
ac_build_date="${stamp##*-} ${${stamp%-*}#*-} ${stamp%%-*}"
fi
AC_MSG_RESULT([$ac_build_date])
AC_DEFINE_UNQUOTED(DATE, "$ac_build_date", [Define the version date])

# Optimizations


Laden…
Abbrechen
Speichern