X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fconfigure.ac;h=efbf7d0c974f07d986e4998485ec26bdfe86eabf;hb=e53f20a3513d4afd545be053ca68b38ac8d7b962;hp=2d9e6029a504a92d860c3fc3d021ab4c6df7148b;hpb=338dbad4975a5575e7a1b2c8300744637d484700;p=ghc-hetmet.git diff --git a/ghc/configure.ac b/ghc/configure.ac index 2d9e602..efbf7d0 100644 --- a/ghc/configure.ac +++ b/ghc/configure.ac @@ -1,15 +1,9 @@ # Initialise and check sanity. AC_INIT([ghc.spec.in]) -# Compute the version number. -version=`sed -e 's/.*\([[0-9]]\)\.\([[0-9]]*\).*/\1.\2/' VERSION` - -# ToDo: CVS snapshots should probably use the date here -release=1 - -# These are needed by the .spec file. -AC_SUBST([version]) -AC_SUBST([release]) +# Compute the version number and the release, they are needed by the .spec file. +AC_SUBST([version], [[`sed 's/.* version \([0-9][0-9.]*\).*/\1/' VERSION`]]) +AC_SUBST([release], [1]) # Write the results... AC_OUTPUT([ghc.spec])