Re: [Xmonad] Config.hs: version Config.hs.template instead?

28 May
2007
28 May
'07
11:27 p.m.
wagnerd:
Donald Bruce Stewart wrote:
glasser:
Can we delete Config.hs from the repository and version a Config.hs.template instead? (Part of the build process could be to
Integrating this with Cabal would be the main problem.
Could the integration be as simple as changing Setup.lhs to read something like the one below? ~d
#!/usr/bin/env runhaskell
import System.Directory import Control.Monad import Distribution.Simple makeCopy = copyFile "Config.hs.template" "Config.hs" main = doesFileExist "Config.hs" >>= flip when makeCopy >> defaultMain
Oh, this is a nice idea (I think). We'll look at this after the release. -- Don
6570
Age (days ago)
6570
Last active (days ago)
0 comments
1 participants
participants (1)
-
dons@cse.unsw.edu.au