WIP for #1039
This works, but ignores previous cabal(-dev) options. I'll work to add them back in now.
This commit is contained in:
parent
9fbfb62e68
commit
c6499bbe91
@ -28,7 +28,7 @@ keter :: String -- ^ cabal command
|
|||||||
-> Bool -- ^ no build?
|
-> Bool -- ^ no build?
|
||||||
-> Bool -- ^ no copy to?
|
-> Bool -- ^ no copy to?
|
||||||
-> IO ()
|
-> IO ()
|
||||||
keter cabal noBuild noCopyTo = do
|
keter _cabal noBuild noCopyTo = do
|
||||||
ketercfg <- keterConfig
|
ketercfg <- keterConfig
|
||||||
mvalue <- decodeFile ketercfg
|
mvalue <- decodeFile ketercfg
|
||||||
value <-
|
value <-
|
||||||
@ -73,9 +73,10 @@ keter cabal noBuild noCopyTo = do
|
|||||||
collapse' [] = []
|
collapse' [] = []
|
||||||
|
|
||||||
unless noBuild $ do
|
unless noBuild $ do
|
||||||
run cabal ["clean"]
|
run "stack" ["clean"]
|
||||||
run cabal ["configure"]
|
-- run cabal ["configure"]
|
||||||
run cabal ["build"]
|
createDirectoryIfMissing True "./dist/bin"
|
||||||
|
run "stack" $ words "--local-bin-path ./dist/bin build --copy-bins"
|
||||||
|
|
||||||
_ <- try' $ removeDirectoryRecursive "static/tmp"
|
_ <- try' $ removeDirectoryRecursive "static/tmp"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user