summaryrefslogtreecommitdiff
path: root/WebSetup.hs
AgeCommit message (Collapse)Author
2021-04-30Remove notice about example grammars not being included anymore from build ↵John J. Camilleri
scripts
2018-11-30WebSetup.hs: don't output messages that lie about what's being installedThomas Hallgren
2018-11-28bin/build-binary-dist.sh: include the RGL in binary distributionsThomas Hallgren
TODO: the corresponding changes in debian/rules
2018-07-26Fixes for buildWebJohn J. Camilleri
2018-07-19WebSetup: fail silently when example grammars don't buildJohn J. Camilleri
Also used installed RGL not built
2018-07-05More cleanup in Setup and WebSetupJohn J. Camilleri
2018-07-04Replace Distribution.Simple.Utils.noticeNoWrap with putStrJohn J. Camilleri
Effect is the same and I don't want to upset the package dependencies
2018-07-04Remove examples directory; these now live in gf-contribJohn J. Camilleri
All changes have been reflected in the gf-contrib repository: https://github.com/GrammaticalFramework/gf-contrib Now, for WebSetup to build the example grammars, one must have gf-contrib cloned in the same top-level directory as GF. When this isn't the case, WebSetup displays a notice without failing.
2017-08-18Bump version requirements to base>=4.6, Cabal>=1.20Thomas Hallgren
Cabal>=1.20 allows control over parallelism when compiling grammars from Setup.hs and WebSetup.hs. base>=4.6 allows conditional compilation with CPP to be eliminated from a few modules. base-4.6 corresponds to GHC 7.6.3, which is what you get in Debian 8 (aka jessie, aka oldstable) from 2015.
2015-09-11WebSetup.hs: always enable parallel compilation of the RGL and the example ↵hallgren
grammars This should work nicely now that GF itself can detect the number of processors in the system. Previously there was some code in WebSetup.hs that relied on Cabal to do this, but it was commented out because it requires Cabal>=1.20, which is fairly new and it would complicate the installation instructions if it was required to compile GF...
2015-06-23WebSetup.hs: a note about parallel buildshallgren
2015-05-21Omit -optimize-pgf when compiling small example grammarshallgren
The minibar lets the user choose any category as the start category, but this can lead to run-time errors for grammars compiled with -optimize-pgf. The problem can also be observed in the GF shell. For example, "linearize Fish" (which means that the start category is Kind) fails for some languages when Foods.pgf is compiled with -optimize-pgf.
2014-11-27WebSetup.hs: always use gf -j, to avoid problems compiling the Phrasebookhallgren
2014-08-25Setup.hs: disable parallel RGL build support for now, since it is ↵hallgren
incompatible with Cabal<1.20
2014-08-25Experimental: parallel batch compilation of grammarshallgren
On my laptop these changes speed up the full build of the RGL and example grammars with 'cabal build' from ~95s to ~43s and the zero build from ~18s to ~5s. The main change is the introduction of the module GF.CompileInParallel that replaces GF.Compile and the function GF.Compile.ReadFiles.getAllFiles. At present, it is activated with the new -j flag, and it is only used when combined with --make or --batch. In addition, to get parallel computations, you need to add GHC run-time flags, e.g., +RTS -N -A20M -RTS, to the command line. The Setup.hs script has been modified to pass the appropriate flags to GF for parallel compilation when compiling the RGL and example grammars, but you need a recent version of Cabal for this to work (probably >=1.20). Some additonal refactoring were made during this work. A new monad is used to avoid warnings/error messages from different modules to be intertwined when compiling in parallel, so some functios that were hardiwred to the IO or IOE monads have been lifted to work in arbitrary monads that are instances in the appropriate classes.
2014-08-08Setup.hs: don't build example grammars when the rgl-none argument is specifiedhallgren
2014-07-21WebSetup.hs: include Chinese when building the Phrasebookhallgren
2014-06-21The --output-dir option now applies also to PGF fileshallgren
2014-06-19WebSetup.hs: PhrasebookLav works againhallgren
2014-06-19WebSetup.hs: skip PhrasebookLav for nowhallgren
2014-06-18Compile example grammars during the build phase instead of the install phasehallgren
This allows more errors to be detected by the build bot. TODO: fix the gf --output-dir flag, which does not seem to change where PGF file are put.
2014-03-11WebSetup.hs: use the correct --gf-lib-path when building example grammarshallgren
The directory should be the same as the one used in Setup.hs when building the RGL, where a build directory supplied by cabal is used. This is usually dist/build/rgl, but it could be different, e.g. when using a cabal sandbox.
2013-09-16Remove contribs and examplesjohn.j.camilleri
Everything has now been moved to a separate repository at https://github.com/GrammaticalFramework/gf-contrib The contents of the examples folder are build during SetupWeb
2012-04-19minibar & cloud service: minor style changeshallgren
Also include the GF logo on the cloud service start page.
2012-03-01WebSetup.hs: avoid ? wildcards because of odd behaviour under Win32hallgren
There is some discussion here: http://www.xxcopy.com/xxcopy18.htm
2012-03-01WebSetup.hs: use </> instead of '/' for Win32 compatibilityhallgren
2011-10-25Preparations for release of GF 3.3hallgren
+ Changing version numbers and dates here and there. + Simplify build-binary-dist.sh since pgf-http need not be built anymore. + Use--gf-lib-path to make the sample grammars for minibar compile even if GF is not installed.
2011-10-14Bug fix in setup for gf -server modehallgren
Use the command "dist/build/gf/gf" instead of "gf" to compile the sample grammars for the minibar, to avoid failing if gf is installed in a directory which is not in the $PATH.
2011-10-12Improvements of "gf -server" mode and related setuphallgren
"gf -server" mode now contains everything needed to run the minibar and the grammar editor (including example-based grammar writing). The Setup.hs script installs the required files where gf -server can find them. These files have been moved to a new directory: src/www. The separate server program pgf-http is now obsolete.