1
0
forked from GitHub/gf-core

optimization flags and improver eng

This commit is contained in:
aarne
2005-02-05 09:52:04 +00:00
parent bc05653e82
commit 45f3b7d5e7
9 changed files with 79 additions and 29 deletions

View File

@@ -9,7 +9,7 @@
-- > CVS $Author $
-- > CVS $Revision $
--
-- (Description of the module)
-- Compile HelpFile.hs from HelpFile.
-----------------------------------------------------------------------------
module Main where
@@ -20,6 +20,7 @@ main = do
writeFile "HelpFile.hs" s'
mkHsFile ss =
helpHeader ++
"module HelpFile where\n\n" ++
"import Operations\n\n" ++
"txtHelpFileSummary =\n" ++
@@ -39,3 +40,21 @@ mkOne s = " \"" ++ pref s ++ (escs s) ++ "\" ++"
escs [] = []
escs (c:cs) | elem c "\"\\" = '\\':c:escs cs
escs (c:cs) = c:escs cs
helpHeader = unlines [
"----------------------------------------------------------------------",
"-- |",
"-- Module : HelpFile",
"-- Maintainer : Aarne Ranta",
"-- Stability : (stable)",
"-- Portability : (portable)",
"--",
"-- > CVS $Date $",
"-- > CVS $Author $",
"-- > CVS $Revision $",
"--",
"-- Help on shell commands. Generated from HelpFile by 'make help'.",
"-----------------------------------------------------------------------------",
"",
""
]