summaryrefslogtreecommitdiff
path: root/WebSetup.hs
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2014-03-11 13:46:10 +0000
committerhallgren <hallgren@chalmers.se>2014-03-11 13:46:10 +0000
commitccc43b28f0fe8a4d2cec23fe3e1e73ee4cb829fa (patch)
tree846e58290fe7da6e4d5fb5a65d6d7dadb583c9d6 /WebSetup.hs
parentccda8f00e169ae2db24de6e9295bd1b256bf30a8 (diff)
WebSetup.hs: use the correct --gf-lib-path when building example grammars
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.
Diffstat (limited to 'WebSetup.hs')
-rw-r--r--WebSetup.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebSetup.hs b/WebSetup.hs
index 84265bf8e..1c6669bf1 100644
--- a/WebSetup.hs
+++ b/WebSetup.hs
@@ -68,7 +68,7 @@ setupWeb gf args dest pkg lbi =
where
tmp_dir = gfo_dir</>tmp
cmd = gf++" -make -s -optimize-pgf --gfo-dir="++tmp_dir++
- " --gf-lib-path=dist"</>"build"</>"rgl"++
+ " --gf-lib-path="++buildDir lbi </> "rgl"++
-- " --output-dir="++grammars_dir++ -- has no effect?!
" "++src