summaryrefslogtreecommitdiff
path: root/WebSetup.hs
diff options
context:
space:
mode:
authorJohn J. Camilleri <john@digitalgrammars.com>2021-04-30 13:39:15 +0200
committerJohn J. Camilleri <john@digitalgrammars.com>2021-04-30 13:39:15 +0200
commit91278e2b4b4b2c6fcb8e17682238a1a80a4239cd (patch)
treee25646a7bda6befb18801110d83fae8d578887f7 /WebSetup.hs
parent9b4f2dd18b64b770aaebfa1885085e8e3447f119 (diff)
Remove notice about example grammars not being included anymore from build scripts
Diffstat (limited to 'WebSetup.hs')
-rw-r--r--WebSetup.hs15
1 files changed, 10 insertions, 5 deletions
diff --git a/WebSetup.hs b/WebSetup.hs
index fd55439b4..fa8c5787f 100644
--- a/WebSetup.hs
+++ b/WebSetup.hs
@@ -26,6 +26,14 @@ import Distribution.PackageDescription(PackageDescription(..))
so users won't see this message unless they check the log.)
-}
+-- | Notice about contrib grammars
+noContribMsg :: IO ()
+noContribMsg = putStr $ unlines
+ [ "Example grammars are no longer included in the main GF repository, but have moved to gf-contrib."
+ , "If you want them to be built, clone the following repository in the same directory as gf-core:"
+ , "https://github.com/GrammaticalFramework/gf-contrib.git"
+ ]
+
example_grammars :: [(String, String, [String])] -- [(pgf, subdir, source modules)]
example_grammars =
[("Letter.pgf","letter",letterSrc)
@@ -50,11 +58,8 @@ buildWeb gf flags (pkg,lbi) = do
contrib_exists <- doesDirectoryExist contrib_dir
if contrib_exists
then mapM_ build_pgf example_grammars
- else putStr $ unlines
- [ "Example grammars are no longer included in the main GF repository, but have moved to gf-contrib."
- , "If you want these example grammars to be built, clone this repository in the same top-level directory as GF:"
- , "https://github.com/GrammaticalFramework/gf-contrib.git"
- ]
+ -- else noContribMsg
+ else return ()
where
gfo_dir = buildDir lbi </> "examples"