* Fix a bashism in the configure script that the FreeBSD guys apparently
never bothered to tell me about.
This commit is contained in:
parent
4f409dd091
commit
98d4ddf5c9
1 changed files with 2 additions and 1 deletions
|
@ -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])
|
||||
|
|
Loading…
Reference in a new issue