Browse Source

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

never bothered to tell me about.
pull/1/head
Sam Hocevar sam 17 years ago
parent
commit
98d4ddf5c9
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      configure.ac

+ 2
- 1
configure.ac 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])


Loading…
Cancel
Save