on master help sign in
Fix typo, make stylize.sh work when a dist directory exists
0fec73cEcho Nolan
Makefile+1−1
@@ -24,7 +24,7 @@ pinstall: dist/setup-config
24build: dist/setup-config
24build: dist/setup-config
25 $(CABAL) build $(CABALFLAGS)
25 $(CABAL) build $(CABALFLAGS)
26
26
27−test: doc test_c sylize
27+test: doc test_c stylize
28
28
29stylize:
29stylize:
30 ./stylize.sh
30 ./stylize.sh
stylize.sh+1−1
@@ -11,7 +11,7 @@ then
11fi
11fi
12
12
13
13
14−find . -name \*.hs -and \( -not -name Setup.hs \) | xargs stylish-haskell -i > stylish-out 2>&1
14+find . -name \*.hs -and \( -not \( -name Setup.hs -or -path ./dist/\* \) \) | xargs stylish-haskell -i > stylish-out 2>&1
15
15
16# It doesn't do exit codes properly, so we just check if it outputted anything.
16# It doesn't do exit codes properly, so we just check if it outputted anything.
17if [ -s stylish-out ];
17if [ -s stylish-out ];