Fix Git-commit-id detection for RELEASE=YES
authorHerbert Valerio Riedel <hvr@gnu.org>
Thu, 26 Mar 2015 21:39:52 +0000 (22:39 +0100)
committerHerbert Valerio Riedel <hvr@gnu.org>
Thu, 26 Mar 2015 21:39:52 +0000 (22:39 +0100)
By mistake, the Git-commit-id detection was only enabled for
`RELEASE=NO` (since the date-based GHC version computation is
only active in that case). With this commit the commit-id
detection is active regardless of the `RELEASE`-setting.

This is a follow-up to 73e5e2f8bade2d8b2b1ecae958fe12d0b24591ef

aclocal.m4

index 5726a3f..f5456ae 100644 (file)
@@ -1586,6 +1586,7 @@ if test "$RELEASE" = "NO"; then
         dnl less likely to go wrong.
         PACKAGE_VERSION=${PACKAGE_VERSION}.`date +%Y%m%d`
     fi
+fi
 
     AC_MSG_CHECKING([for GHC Git commit id])
     if test -d .git; then
@@ -1603,7 +1604,6 @@ if test "$RELEASE" = "NO"; then
         PACKAGE_GIT_COMMIT_ID="0000000000000000000000000000000000000000"
     fi
 
-fi
 
 # Some renamings
 AC_SUBST([ProjectName], [$PACKAGE_NAME])