Merge branch 'joeyconfig'
This commit is contained in:
commit
90a6b1f094
|
@ -56,13 +56,8 @@ wrapper args propellordir propellorbin = do
|
||||||
makeRepo = do
|
makeRepo = do
|
||||||
putStrLn $ "Setting up your propellor repo in " ++ propellordir
|
putStrLn $ "Setting up your propellor repo in " ++ propellordir
|
||||||
putStrLn ""
|
putStrLn ""
|
||||||
ifM (doesFileExist localrepo <||> doesDirectoryExist localrepo)
|
localexists <- doesFileExist localrepo <||> doesDirectoryExist localrepo
|
||||||
( void $ boolSystem "git" [Param "clone", File localrepo, File propellordir]
|
void $ boolSystem "git" [Param "clone", File (if localexists then localrepo else netrepo). File propellordir]
|
||||||
, do
|
|
||||||
void $ boolSystem "git" [Param "clone", Param netrepo, File propellordir]
|
|
||||||
whenM (doesDirectoryExist (propellordir </> "privdata")) $
|
|
||||||
mapM_ nukeFile =<< dirContents (propellordir </> "privdata")
|
|
||||||
)
|
|
||||||
buildruncfg = do
|
buildruncfg = do
|
||||||
changeWorkingDirectory propellordir
|
changeWorkingDirectory propellordir
|
||||||
ifM (boolSystem "make" [Param "build"])
|
ifM (boolSystem "make" [Param "build"])
|
||||||
|
|
Loading…
Reference in New Issue