manually copy the logo to the www directory. Copying in Setup.hs doesn't work with the new Cabal

This commit is contained in:
Krasimir Angelov
2022-08-16 21:03:44 +02:00
parent 3bdd9dc022
commit 62344d1325
3 changed files with 1 additions and 8 deletions

View File

@@ -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 =

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB