mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-20 18:29:33 -06:00
A bunch of Makefile fixes. Moved HelpFile and HelpFile.hs.
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
-- Stability : (stable)
|
||||
-- Portability : (portable)
|
||||
--
|
||||
-- > CVS $Date: 2005/04/16 05:40:51 $
|
||||
-- > CVS $Author: peb $
|
||||
-- > CVS $Revision: 1.7 $
|
||||
-- > CVS $Date: 2005/04/21 11:38:24 $
|
||||
-- > CVS $Author: bringert $
|
||||
-- > CVS $Revision: 1.8 $
|
||||
--
|
||||
-- Compile @HelpFile.hs@ from the text file @HelpFile@.
|
||||
-----------------------------------------------------------------------------
|
||||
@@ -16,11 +16,11 @@ module Main (main) where
|
||||
main = do
|
||||
s <- readFile "HelpFile"
|
||||
let s' = mkHsFile (lines s)
|
||||
writeFile "HelpFile.hs" s'
|
||||
writeFile "GF/Shell/HelpFile.hs" s'
|
||||
|
||||
mkHsFile ss =
|
||||
helpHeader ++
|
||||
"module HelpFile where\n\n" ++
|
||||
"module GF.Shell.HelpFile where\n\n" ++
|
||||
"import Operations\n\n" ++
|
||||
"txtHelpFileSummary =\n" ++
|
||||
" unlines $ map (concat . take 1 . lines) $ paragraphs txtHelpFile\n\n" ++
|
||||
@@ -43,14 +43,14 @@ mkOne s = " \"" ++ pref s ++ (escs s) ++ "\" ++"
|
||||
helpHeader = unlines [
|
||||
"----------------------------------------------------------------------",
|
||||
"-- |",
|
||||
"-- Module : HelpFile",
|
||||
"-- Module : GF.Shell.HelpFile",
|
||||
"-- Maintainer : Aarne Ranta",
|
||||
"-- Stability : (stable)",
|
||||
"-- Portability : (portable)",
|
||||
"--",
|
||||
"-- > CVS $Date: 2005/04/16 05:40:51 $",
|
||||
"-- > CVS $Author: peb $",
|
||||
"-- > CVS $Revision: 1.7 $",
|
||||
"-- > CVS $Date: 2005/04/21 11:38:24 $",
|
||||
"-- > CVS $Author: bringert $",
|
||||
"-- > CVS $Revision: 1.8 $",
|
||||
"--",
|
||||
"-- Help on shell commands. Generated from HelpFile by 'make help'.",
|
||||
"-- PLEASE DON'T EDIT THIS FILE.",
|
||||
|
||||
Reference in New Issue
Block a user