From 913d1f4de73dc95774d54cb82b5ff57df6bddb1d Mon Sep 17 00:00:00 2001 From: bringert Date: Thu, 19 May 2005 17:19:42 +0000 Subject: [PATCH] Clean target now works in cygwin. Quoted paths to java executables to handle spaces in paths. Include more files in the MSI package. Disable readline automatically on GHC 6.4 for Windows. --- src/Makefile | 8 ++++--- src/ReleaseProcedure | 3 ++- src/config.mk.in | 8 +++---- src/configure.ac | 16 ++++++++++++-- src/gf.wxs.in | 52 ++++++++++++++++++++++++++++++-------------- src/jgf.in | 2 +- 6 files changed, 62 insertions(+), 27 deletions(-) diff --git a/src/Makefile b/src/Makefile index eecb0f6df..6667bfbe8 100644 --- a/src/Makefile +++ b/src/Makefile @@ -89,8 +89,7 @@ shell: $(GHMAKE) $(GHCFLAGS) $(GHCOPTFLAGS) GF/Shell.hs clean: - -rm -rf */*.o */*.hi *.o *.hi */*.ghi *.ghi *~ */*~ - -rm -f GF/*.{o,hi,ghi} GF/*/*.{o,hi,ghi} GF/*/*/*.{o,hi,ghi} + find . '(' -name '*~' -o -name '*.hi' -o -name '*.ghi' -o -name '*.o' ')' -exec rm -f '{}' ';' -rm -f JavaGUI/*.class -rm -f gf.wixobj @@ -203,7 +202,10 @@ grammar-dist: gtar -zcf $(GRAMMAR_DIST_DIR).tgz $(GRAMMAR_DIST_DIR) rm -rf $(GRAMMAR_DIST_DIR) -windows-msi: +jgf.bat: + echo 'java -jar gf-java.jar gf.exe' > jgf.bat + +windows-msi: jgf.bat candle -nologo gf.wxs light -nologo gf.wixobj diff --git a/src/ReleaseProcedure b/src/ReleaseProcedure index 93c967b92..24a350ec8 100644 --- a/src/ReleaseProcedure +++ b/src/ReleaseProcedure @@ -97,7 +97,8 @@ buildarchtranslate: i686: i586 15. Build a Windows package: - ??? + $ cd src + $ ./configure && make all windows-msi 16. Add new GF package release to SourceForge: diff --git a/src/config.mk.in b/src/config.mk.in index cf2b6d794..dc04386ca 100644 --- a/src/config.mk.in +++ b/src/config.mk.in @@ -19,13 +19,13 @@ EXEEXT = @EXEEXT@ INSTALL = @INSTALL@ -GHC = @GHC@ -GHCI = @GHCI@ +GHC = "@GHC@" +GHCI = "@GHCI@" READLINE = @READLINE@ ENABLE_JAVA = @ENABLE_JAVA@ -JAVAC = @JAVAC@ -JAR = @JAR@ +JAVAC = "@JAVAC@" +JAR = "@JAR@" diff --git a/src/configure.ac b/src/configure.ac index 81fae5e51..3bfd9c978 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -4,7 +4,7 @@ AC_INIT([GF],[2.2],[aarne@cs.chalmers.se],[GF]) AC_PREREQ(2.53) -AC_REVISION($Revision: 1.20 $) +AC_REVISION($Revision: 1.21 $) AC_CONFIG_FILES([config.mk jgf gf.wxs]) @@ -38,6 +38,11 @@ AC_ARG_WITH(ghc, GHCI=$(dirname $GHC)/ghci +GHC_VERSION=`$GHC --version | sed -e 's/.*version //'` +AC_MSG_CHECKING([GHC version]) +AC_MSG_RESULT($GHC_VERSION) + + AC_SUBST(GHC) AC_SUBST(GHCI) @@ -56,7 +61,14 @@ AC_ARG_WITH(readline, else READLINE="$withval" fi], - [READLINE="readline"]) + [if test "$GHC_VERSION" = "6.4" && test "$host_os" = "cygwin"; then + AC_MSG_WARN([There are problems with readline on 6.4 for Windows, + disabling readline support. + Use --with-readline to override.]) + READLINE="no" + else + READLINE="readline" + fi]) case $READLINE in readline) diff --git a/src/gf.wxs.in b/src/gf.wxs.in index 941a7f2cb..760ed2f26 100644 --- a/src/gf.wxs.in +++ b/src/gf.wxs.in @@ -1,40 +1,60 @@ - + + Description="Grammatical Framework, version @PACKAGE_VERSION@" + Comments="This package contains the Grammatical Framework system, version @PACKAGE_VERSION@." + InstallerVersion="200" Compressed="yes" /> + - - + - - - - + + + + + + + + + + + + + + + + + + + + - + + + + diff --git a/src/jgf.in b/src/jgf.in index 4bd2c24f8..b82e1fd73 100644 --- a/src/jgf.in +++ b/src/jgf.in @@ -5,7 +5,7 @@ exec_prefix=@exec_prefix@ GF_BIN_DIR=@bindir@ GF_DATA_DIR=@datadir@/GF-@PACKAGE_VERSION@ -JAVA=@JAVA@ +JAVA="@JAVA@" GF=$GF_BIN_DIR/gf JARFILE=$GF_DATA_DIR/gf-java.jar