diff options
| author | hallgren <hallgren@chalmers.se> | 2011-10-12 17:03:54 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2011-10-12 17:03:54 +0000 |
| commit | 44d1a5a9f71b03d9aceeccd760a63fcdc45f8bad (patch) | |
| tree | d51076a708997d6f1af6ac0deefd535bbc25f804 /Setup.hs | |
| parent | 0aba45560d2033c37c3d2e876e6f3ef89e1554d6 (diff) | |
Improvements of "gf -server" mode and related setup
"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.
Diffstat (limited to 'Setup.hs')
| -rw-r--r-- | Setup.hs | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -1,4 +1,3 @@ -module Main where import Distribution.Simple import Distribution.Simple.LocalBuildInfo @@ -7,26 +6,34 @@ import Distribution.Simple.Utils import Distribution.Simple.Setup import Distribution.PackageDescription hiding (Flag) import Control.Monad -import Data.Maybe import Data.List(isPrefixOf) import System.IO import System.Cmd import System.FilePath import System.Directory -import System.Environment import System.Process import System.Exit +import WebSetup + main :: IO () main = defaultMainWithHooks simpleUserHooks{ preBuild =checkRGLArgs , postBuild=buildRGL , preInst =checkRGLArgs - , postInst =installRGL + , postInst =gfPostInst , preCopy =checkRGLArgs - , postCopy =copyRGL + , postCopy =gfPostCopy , sDistHook=sdistRGL , runTests =testRGL } + where + gfPostInst args flags pkg lbi = + do installWeb args flags pkg lbi + installRGL args flags pkg lbi + + gfPostCopy args flags pkg lbi = + do copyWeb args flags pkg lbi + copyRGL args flags pkg lbi -------------------------------------------------------- -- Commands for building the Resource Grammar Library |
