* Fix a bashism in the configure script that the FreeBSD guys apparently

never bothered to tell me about.
This commit is contained in:
Sam Hocevar 2008-01-24 19:47:49 +00:00 committed by sam
parent 4f409dd091
commit 98d4ddf5c9

View file

@ -61,7 +61,8 @@ 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%%-*}"
tmp="${stamp%-*}"
ac_build_date="${stamp##*-} ${tmp#*-} ${stamp%%-*}"
fi
AC_MSG_RESULT([$ac_build_date])
AC_DEFINE_UNQUOTED(DATE, "$ac_build_date", [Define the version date])