Permalink
Browse files

make bin/cloc.sh use cloc on path instead of downloading it

I think the way I had it set up before was because Homebrew didn't
have cloc yet?  anyway, it definitely does now
  • Loading branch information...
1 parent d617f8a commit aa4b70203afeabdf8f5818b1339b4b9478063657 @SethTisue SethTisue committed Apr 5, 2013
Showing with 4 additions and 8 deletions.
  1. +4 −8 bin/cloc.sh
View
@@ -1,14 +1,10 @@
#!/bin/sh
-# count lines of code
+# "count lines of code"
+#
+# `brew install cloc` first if needed - ST 4/5/13
-if [ ! -f tmp/cloc.pl ] ; then
- mkdir -p tmp
- curl -sS 'http://ccl.northwestern.edu/devel/cloc-1.53.pl' -o tmp/cloc.pl
- chmod +x tmp/cloc.pl
-fi
-
-tmp/cloc.pl \
+cloc \
--exclude-ext=m,xml,html,css,dtd \
--exclude-dir=tmp,project/build/classycle,project/plugins/src_managed \
--progress-rate=0 \

0 comments on commit aa4b702

Please sign in to comment.