[Pkg-haskell-commits] darcs: shellcheck: refresh make_testsuite_optional.patch

Helmut Grohne helmut at subdivi.de
Tue Dec 30 21:11:55 UTC 2014


Tue Dec 30 21:06:03 UTC 2014  Helmut Grohne <helmut at subdivi.de>
  * refresh make_testsuite_optional.patch

    M ./changelog +1
    M ./patches/make_testsuite_optional.patch -27 +27

Tue Dec 30 21:06:03 UTC 2014  Helmut Grohne <helmut at subdivi.de>
  * refresh make_testsuite_optional.patch
diff -rN -u old-shellcheck/changelog new-shellcheck/changelog
--- old-shellcheck/changelog	2014-12-30 21:11:55.732913578 +0000
+++ new-shellcheck/changelog	2014-12-30 21:11:55.740913577 +0000
@@ -1,6 +1,7 @@
 shellcheck (0.3.5-1) UNRELEASED; urgency=medium
 
   * New Upstream release.
+  * Refresh make_testsuite_optional.patch.
 
  -- Helmut Grohne <helmut at subdivi.de>  Tue, 30 Dec 2014 21:43:21 +0100
 
diff -rN -u old-shellcheck/patches/make_testsuite_optional.patch new-shellcheck/patches/make_testsuite_optional.patch
--- old-shellcheck/patches/make_testsuite_optional.patch	2014-12-30 21:11:55.732913578 +0000
+++ new-shellcheck/patches/make_testsuite_optional.patch	2014-12-30 21:11:55.736913578 +0000
@@ -8,10 +8,10 @@
 using TemplateHaskell on non-TH architectures by branching on the
 Debian-specific DEBIAN_NO_GHCI CPP macro (Thanks to Joachim Breitner). 
 
-Index: ShellCheck-0.3.4/ShellCheck/Analytics.hs
+Index: ShellCheck-0.3.5/ShellCheck/Analytics.hs
 ===================================================================
---- ShellCheck-0.3.4.orig/ShellCheck/Analytics.hs	2014-10-23 21:56:44.000000000 +0200
-+++ ShellCheck-0.3.4/ShellCheck/Analytics.hs	2014-10-23 22:11:08.000000000 +0200
+--- ShellCheck-0.3.5.orig/ShellCheck/Analytics.hs	2014-12-30 21:44:59.000000000 +0100
++++ ShellCheck-0.3.5/ShellCheck/Analytics.hs	2014-12-30 21:46:39.000000000 +0100
 @@ -15,8 +15,15 @@
      You should have received a copy of the GNU Affero General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
@@ -19,9 +19,9 @@
 +{-# LANGUAGE CPP #-}
 +#ifndef DEBIAN_NO_GHCI
  {-# LANGUAGE TemplateHaskell #-}
--module ShellCheck.Analytics (AnalysisOption(..), filterByAnnotation, runAnalytics, shellForExecutable, runTests) where
+-module ShellCheck.Analytics (AnalysisOptions(..), defaultAnalysisOptions, filterByAnnotation, runAnalytics, shellForExecutable, runTests) where
 +#endif
-+module ShellCheck.Analytics (AnalysisOption(..), filterByAnnotation, runAnalytics, shellForExecutable
++module ShellCheck.Analytics (AnalysisOptions(..), defaultAnalysisOptions, filterByAnnotation, runAnalytics, shellForExecutable
 +#ifndef DEBIAN_NO_GHCI
 +	, runTests
 +#endif
@@ -29,7 +29,7 @@
  
  import Control.Arrow (first)
  import Control.Monad
-@@ -33,7 +40,9 @@
+@@ -34,7 +41,9 @@
  import ShellCheck.Parser hiding (runTests)
  import Text.Regex
  import qualified Data.Map as Map
@@ -37,9 +37,9 @@
  import Test.QuickCheck.All (quickCheckAll)
 +#endif
  
- data Shell = Ksh | Zsh | Sh | Bash
-     deriving (Show, Eq)
-@@ -2880,6 +2889,8 @@
+ data Parameters = Parameters {
+     variableFlow :: [StackData],
+@@ -3012,6 +3021,8 @@
          return $ param `elem` strs
      warnFor t = warn (getId t) 2146 "This action ignores everything before the -o. Use \\( \\) to group."
  
@@ -48,16 +48,16 @@
  runTests = $quickCheckAll
 +#endif
  
-Index: ShellCheck-0.3.4/ShellCheck/Parser.hs
+Index: ShellCheck-0.3.5/ShellCheck/Parser.hs
 ===================================================================
---- ShellCheck-0.3.4.orig/ShellCheck/Parser.hs	2014-10-23 21:56:44.000000000 +0200
-+++ ShellCheck-0.3.4/ShellCheck/Parser.hs	2014-10-23 22:09:34.000000000 +0200
+--- ShellCheck-0.3.5.orig/ShellCheck/Parser.hs	2014-12-30 21:44:59.000000000 +0100
++++ ShellCheck-0.3.5/ShellCheck/Parser.hs	2014-12-30 21:48:13.000000000 +0100
 @@ -15,8 +15,15 @@
      You should have received a copy of the GNU Affero General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
  -}
 -{-# LANGUAGE NoMonomorphismRestriction, TemplateHaskell #-}
--module ShellCheck.Parser (Note(..), Severity(..), parseShell, ParseResult(..), ParseNote(..), sortNotes, noteToParseNote, runTests) where
+-module ShellCheck.Parser (Note(..), Severity(..), parseShell, ParseResult(..), ParseNote(..), sortNotes, noteToParseNote, runTests, readScript) where
 +{-# LANGUAGE CPP, NoMonomorphismRestriction #-}
 +#ifndef DEBIAN_NO_GHCI
 +{-# LANGUAGE TemplateHaskell #-}
@@ -66,7 +66,7 @@
 +#ifndef DEBIAN_NO_GHCI
 +	, runTests
 +#endif
-+	) where
++	, readScript) where
  
  import ShellCheck.AST
  import ShellCheck.Data
@@ -80,7 +80,7 @@
  
  backslash = char '\\'
  linefeed = optional carriageReturn >> char '\n'
-@@ -2094,6 +2103,8 @@
+@@ -2138,6 +2147,8 @@
  lt x = trace (show x) x
  ltt t = trace (show t)
  
@@ -89,10 +89,10 @@
  runTests = $quickCheckAll
 +#endif
  
-Index: ShellCheck-0.3.4/ShellCheck/Simple.hs
+Index: ShellCheck-0.3.5/ShellCheck/Simple.hs
 ===================================================================
---- ShellCheck-0.3.4.orig/ShellCheck/Simple.hs	2014-10-23 21:56:44.000000000 +0200
-+++ ShellCheck-0.3.4/ShellCheck/Simple.hs	2014-10-23 22:11:37.000000000 +0200
+--- ShellCheck-0.3.5.orig/ShellCheck/Simple.hs	2014-12-30 21:44:59.000000000 +0100
++++ ShellCheck-0.3.5/ShellCheck/Simple.hs	2014-12-30 21:52:22.000000000 +0100
 @@ -15,15 +15,24 @@
      You should have received a copy of the GNU Affero General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
@@ -108,20 +108,20 @@
 +#endif
 +	) where
  
- import ShellCheck.Parser hiding (runTests)
- import ShellCheck.Analytics hiding (runTests)
- import Data.Maybe
- import Text.Parsec.Pos
  import Data.List
+ import Data.Maybe
+ import ShellCheck.Analytics hiding (runTests)
+ import ShellCheck.Options
+ import ShellCheck.Parser hiding (runTests)
 +#ifndef DEBIAN_NO_GHCI
  import Test.QuickCheck.All (quickCheckAll)
 +#endif
+ import Text.Parsec.Pos
  
- shellCheck :: String -> [AnalysisOption] -> [ShellCheckComment]
- shellCheck script options =
-@@ -67,6 +76,7 @@
- prop_commentDisablesAnalysisIssue2 =
-     null $ shellCheck "#shellcheck disable=SC2086\n#lol\necho $1" []
+ shellCheck :: AnalysisOptions -> String -> [ShellCheckComment]
+@@ -72,6 +81,7 @@
+ prop_optionDisablesIssue1 =
+     null $ shellCheck (defaultAnalysisOptions { optionExcludes = [2086, 2148] }) "echo $1"
  
 +#ifndef DEBIAN_NO_GHCI
  return []




More information about the Pkg-haskell-commits mailing list