From f3c8ce3e3d9b3371000284e24e1d154bffa53ee1 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Tue, 18 Jun 2013 09:29:39 -0700 Subject: [PATCH] Initial Cabal file --- Makefile | 2 ++ README | 3 +-- ShellCheck.cabal | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 ShellCheck.cabal diff --git a/Makefile b/Makefile index c2cf996..1ea1e6c 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +# TODO: Phase out Makefile in favor of Cabal + GHCFLAGS=-O9 all: shellcheck jsoncheck .tests diff --git a/README b/README index db7e166..8814be2 100644 --- a/README +++ b/README @@ -15,13 +15,12 @@ The goals of ShellCheck are: - To point out subtle caveats, corner cases and pitfalls, that may cause an advanced user's otherwise working script to fail under future circumstances. - ShellCheck is written in Haskell, and requires GHC, Parsec3 and Text.Regex. To build the JSON interface and run the unit tests, it also requires QuickCheck2 and JSON. On Ubuntu and similar, these are called: ghc6 libghc6-parsec3-dev libghc6-quickcheck2-dev libghc6-json-dev libghc-regex-compat-dev -Build with 'make'. +Executables can be built with cabal. Tests currently still rely on a Makefile. Happy ShellChecking! diff --git a/ShellCheck.cabal b/ShellCheck.cabal new file mode 100644 index 0000000..532b132 --- /dev/null +++ b/ShellCheck.cabal @@ -0,0 +1,20 @@ +Name: ShellCheck +Version: 0.0.0 +Description: Shell script analysis tool +License-file: LICENSE +Author: Vidar Holen +Maintainer: vidar@vidarholen.net +Homepage: http://www.shellcheck.net/ +Build-Type: Simple +Cabal-Version: >= 1.2 + +library + build-depends: base >= 4, parsec, containers, regex-compat, mtl, directory + exposed-modules: ShellCheck.AST, ShellCheck.Parser, ShellCheck.Analytics, ShellCheck.Simple + +executable shellcheck + main-is: shellcheck.hs + +executable jsoncheck + build-depends: json + main-is: jsoncheck.hs