forked from GitHub/gf-core
manually copy the logo to the www directory. Copying in Setup.hs doesn't work with the new Cabal
This commit is contained in:
@@ -170,11 +170,9 @@ setupWeb dest (pkg,lbi) = do
|
|||||||
if contrib_exists
|
if contrib_exists
|
||||||
then mapM_ copy_pgf example_grammars
|
then mapM_ copy_pgf example_grammars
|
||||||
else return () -- message already displayed from buildWeb
|
else return () -- message already displayed from buildWeb
|
||||||
copyGFLogo
|
|
||||||
where
|
where
|
||||||
grammars_dir = www_dir </> "grammars"
|
grammars_dir = www_dir </> "grammars"
|
||||||
cloud_dir = www_dir </> "tmp" -- hmm
|
cloud_dir = www_dir </> "tmp" -- hmm
|
||||||
logo_dir = www_dir </> "Logos"
|
|
||||||
www_dir = datadir (absoluteInstallDirs pkg lbi dest) </> "www"
|
www_dir = datadir (absoluteInstallDirs pkg lbi dest) </> "www"
|
||||||
gfo_dir = buildDir lbi </> "examples"
|
gfo_dir = buildDir lbi </> "examples"
|
||||||
|
|
||||||
@@ -187,12 +185,6 @@ setupWeb dest (pkg,lbi) = do
|
|||||||
copyFile src dst
|
copyFile src dst
|
||||||
else putStrLn $ "Not installing "++dst
|
else putStrLn $ "Not installing "++dst
|
||||||
|
|
||||||
gf_logo = "gf0.png"
|
|
||||||
|
|
||||||
copyGFLogo =
|
|
||||||
do createDirectoryIfMissing True logo_dir
|
|
||||||
copyFile (".."</>".."</>"doc"</>"Logos"</>gf_logo) (logo_dir</>gf_logo)
|
|
||||||
|
|
||||||
-- | Run an arbitrary system command, returning False on failure
|
-- | Run an arbitrary system command, returning False on failure
|
||||||
execute :: String -> [String] -> IO Bool
|
execute :: String -> [String] -> IO Bool
|
||||||
execute command args =
|
execute command args =
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ tested-with: GHC==7.10.3, GHC==8.0.2, GHC==8.10.4, GHC==9.0.2
|
|||||||
data-files:
|
data-files:
|
||||||
www/*.html
|
www/*.html
|
||||||
www/*.css
|
www/*.css
|
||||||
|
www/Logos/gf0.png
|
||||||
www/P/*.png
|
www/P/*.png
|
||||||
www/gfse/*.html
|
www/gfse/*.html
|
||||||
www/gfse/*.css
|
www/gfse/*.css
|
||||||
|
|||||||
BIN
src/compiler/www/Logos/gf0.png
Normal file
BIN
src/compiler/www/Logos/gf0.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.3 KiB |
Reference in New Issue
Block a user