shakers 0.0.33 → 0.0.34
raw patch · 2 files changed
+2/−22 lines, 2 files
Files
- shakers.cabal +1/−1
- src/Development/Shakers.hs +1/−21
shakers.cabal view
@@ -1,5 +1,5 @@ name: shakers-version: 0.0.33+version: 0.0.34 synopsis: Shake helpers. description: Primitive helpers for Shake files. homepage: https://github.com/swift-nav/shakers
src/Development/Shakers.hs view
@@ -28,6 +28,7 @@ , git_ , schemaApply_ , m4+ , tar_ , aws , rsync_ , ssh@@ -57,12 +58,10 @@ ) where import BasicPrelude as Exports hiding ((*>))-import Control.DeepSeq import Data.Char import Development.Shake as Exports import Development.Shake.FilePath import System.Directory-import Text.Regex -- | Join strings with ":" --@@ -521,25 +520,6 @@ phony "publish" $ do need [ file ] stack_ dir [ "upload", dir, "--no-signature" ]-- phony "publish-lower" $ do- need [file, metaFile "cabalVersion" ]- version <- dropWhile (not . isDigit) <$> gitVersion dir- yaml <- fromMaybe "stack.yaml" <$> getEnv "STACK_YAML"- dist <- stack dir [ "path", "--dist-dir" ]- stack_ dir [ "sdist", dir, "--pvp-bounds", "lower" ]- let pkg = dropExtension file- hkg = pkg <-> version- [sdist] <- getDirectoryFiles dist [ hkg <.> "tar.gz" ]- withTempDir $ \d -> do- tar_ dist [ "xzf", sdist, "-C", d ]- let e = d </> hkg- f = e </> file- contents <- readFile' f- let contents' = subRegex (mkRegex $ pkg <> " >=" <> version) contents pkg- contents' `deepseq` writeFile' f contents'- copyFile' yaml $ e </> yaml- stack_ e [ "upload", e, "--no-signature" ] -- | Database rules --