From 44d1a5a9f71b03d9aceeccd760a63fcdc45f8bad Mon Sep 17 00:00:00 2001 From: hallgren Date: Wed, 12 Oct 2011 17:03:54 +0000 Subject: 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. --- Setup.hs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'Setup.hs') diff --git a/Setup.hs b/Setup.hs index d136c943c..68d4035a4 100644 --- a/Setup.hs +++ b/Setup.hs @@ -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 -- cgit v1.2.3