Initial Cabal file
This commit is contained in:
parent
564e3c5413
commit
f3c8ce3e3d
2
Makefile
2
Makefile
|
@ -1,3 +1,5 @@
|
|||
# TODO: Phase out Makefile in favor of Cabal
|
||||
|
||||
GHCFLAGS=-O9
|
||||
|
||||
all: shellcheck jsoncheck .tests
|
||||
|
|
3
README
3
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!
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue