mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
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
|
||||
then mapM_ copy_pgf example_grammars
|
||||
else return () -- message already displayed from buildWeb
|
||||
copyGFLogo
|
||||
where
|
||||
grammars_dir = www_dir </> "grammars"
|
||||
cloud_dir = www_dir </> "tmp" -- hmm
|
||||
logo_dir = www_dir </> "Logos"
|
||||
www_dir = datadir (absoluteInstallDirs pkg lbi dest) </> "www"
|
||||
gfo_dir = buildDir lbi </> "examples"
|
||||
|
||||
@@ -187,12 +185,6 @@ setupWeb dest (pkg,lbi) = do
|
||||
copyFile src 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
|
||||
execute :: String -> [String] -> IO Bool
|
||||
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:
|
||||
www/*.html
|
||||
www/*.css
|
||||
www/Logos/gf0.png
|
||||
www/P/*.png
|
||||
www/gfse/*.html
|
||||
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