1
0
forked from GitHub/gf-core

changed names of resource-1.3; added a note on homepage on release

This commit is contained in:
aarne
2008-06-25 16:54:35 +00:00
parent b96b36f43d
commit e9e80fc389
903 changed files with 113 additions and 32 deletions

View File

@@ -0,0 +1,27 @@
module Main where
import System
-- to create a gfs script that builds a gfcm file. AR 29/1/2004
-- reads old GF
-- change these to your needs
scriptFile = "mkNumerals.gfs"
multiFile = "numerals.gfcm"
absModule = "Numerals"
excluded = ["numerals.Abs.gf"]
main :: IO ()
main = do
system "ls *.gf >files"
s <- readFile "files"
writeFile scriptFile $ unlines $ map mkOne $
filter (flip notElem excluded) $ lines s
appendFile scriptFile "s\n"
appendFile scriptFile $ "pm | wf " ++ multiFile
mkOne file = "i -old -abs=" ++ absModule ++ " -cnc=" ++ lang ++ " " ++ file
where
lang = takeWhile (/= '.') file