mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
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.
This commit is contained in:
17
Setup.hs
17
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
|
||||
|
||||
Reference in New Issue
Block a user