ShellCheck 0.4.2 → 0.4.3
raw patch · 2 files changed
+8/−13 lines, 2 filesdep +processsetup-changedPVP ok
version bump matches the API change (PVP)
Dependencies added: process
API changes (from Hackage documentation)
Files
- Setup.hs +4/−11
- ShellCheck.cabal +4/−2
Setup.hs view
@@ -8,21 +8,13 @@ simpleUserHooks ) import Distribution.Simple.Setup ( SDistFlags ) --- | This requires the process package from,------ https://hackage.haskell.org/package/process----import System.Process ( callCommand )+import System.Process ( system ) --- | This will use almost the default implementation, except we switch--- out the default pre-sdist hook with our own, 'myPreSDist'.--- main = defaultMainWithHooks myHooks where myHooks = simpleUserHooks { preSDist = myPreSDist } - -- | This hook will be executed before e.g. @cabal sdist@. It runs -- pandoc to create the man page from shellcheck.1.md. If the pandoc -- command is not found, this will fail with an error message:@@ -35,9 +27,10 @@ -- myPreSDist :: Args -> SDistFlags -> IO HookedBuildInfo myPreSDist _ _ = do- putStrLn "Building the man page..."+ putStrLn "Building the man page (shellcheck.1) with pandoc..." putStrLn pandoc_cmd- callCommand pandoc_cmd+ result <- system pandoc_cmd+ putStrLn $ "pandoc exited with " ++ show result return emptyHookedBuildInfo where pandoc_cmd = "pandoc -s -t man shellcheck.1.md -o shellcheck.1"
ShellCheck.cabal view
@@ -1,5 +1,5 @@ Name: ShellCheck-Version: 0.4.2+Version: 0.4.3 Synopsis: Shell script analysis tool License: GPL-3 License-file: LICENSE@@ -44,7 +44,9 @@ mtl >= 2.2.1, parsec, regex-tdfa,- QuickCheck >= 2.7.4+ QuickCheck >= 2.7.4,+ -- When cabal supports it, move this to setup-depends:+ process exposed-modules: ShellCheck.AST ShellCheck.ASTLib