Commit 57ef3387 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Allow the version date to be overridden with VERSION_DATE

parent 301c6bce
......@@ -978,7 +978,9 @@ AC_DEFUN([FP_SETUP_PROJECT_VERSION],
if test "$RELEASE" = "NO"; then
AC_MSG_CHECKING([for GHC version date])
if test -d _darcs; then
if test -f VERSION_DATE; then
elif test -d _darcs; then
changequote(, )dnl
ver_date=`darcs changes --quiet --no-summary --xml | head -500 | grep 'date=' | sed "s/^.*date='\([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]\).*$/\1/g" | sort -n | tail -1`
if echo $ver_date | grep '^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]$' 2>&1 >/dev/null; then true; else
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment