From 9269ef95b3d0eae44fbd05f0c62ff5773c9e5ba7 Mon Sep 17 00:00:00 2001 From: Will Boyce Date: Sat, 8 May 2010 00:26:03 +0100 Subject: patched sloccount with support for Erlang Signed-off-by: Adam Vandenberg --- Library/Formula/sloccount.rb | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/sloccount.rb b/Library/Formula/sloccount.rb index 4c16c279b..4f7a281e0 100644 --- a/Library/Formula/sloccount.rb +++ b/Library/Formula/sloccount.rb @@ -30,3 +30,37 @@ index 0c029f1..8e303e2 100644 $(INSTALL) $(EXECUTABLES) $(INSTALL_DIR) uninstall_programs: + +diff --git a/break_filelist b/break_filelist +index ad2de47..ff854e0 100755 +--- a/break_filelist ++++ b/break_filelist +@@ -205,6 +205,7 @@ $noisy = 0; # Set to 1 if you want noisy reports. + "hs" => "haskell", "lhs" => "haskell", + # ???: .pco is Oracle Cobol + "jsp" => "jsp", # Java server pages ++ "erl" => "erlang", + ); + + +diff --git a/erlang_count b/erlang_count +new file mode 100755 +index 0000000..50af97c +--- /dev/null ++++ b/erlang_count +@@ -0,0 +1,3 @@ ++#!/bin/sh ++ ++generic_count '%' $@ +diff --git a/makefile b/makefile +index 0c029f1..7b446d5 100644 +--- a/makefile ++++ b/makefile +@@ -95,6 +95,7 @@ EXECUTABLES= \ + count_extensions \ + count_unknown_ext \ + csh_count \ ++ erlang_count \ + exp_count \ + fortran_count \ + f90_count \ -- cgit v1.2.3