summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Gebetsroither <gebi@grml.org>2012-04-11 12:21:24 +0200
committerJari Aalto <jari.aalto@cante.net>2012-04-11 12:21:24 +0200
commitfbf79a96a03e388fc71075a095de38de6ada7b53 (patch)
tree877e49b7f155f5ce2d83f08ff1997265c60cac43
parent9bd10a159f7ca4dce5a103cb555742eb061e160b (diff)
BTS 462392: add support to Erlang
Gbp-Pq: Name 20_bts462392_erlang_support.patch
-rwxr-xr-xbreak_filelist1
-rw-r--r--erlang_count26
-rw-r--r--makefile1
3 files changed, 28 insertions, 0 deletions
diff --git a/break_filelist b/break_filelist
index 7df41ab..86d0e74 100755
--- a/break_filelist
+++ b/break_filelist
@@ -166,6 +166,7 @@ $noisy = 0; # Set to 1 if you want noisy reports.
# can be separated.
"h" => "h", "H" => "h", "hpp" => "h", "hh" => "h",
"ada" => "ada", "adb" => "ada", "ads" => "ada",
+ "erl" => "erlang",
"pad" => "ada", # Oracle Ada preprocessor.
"f" => "fortran", "F" => "fortran", # This catches "wokka.F" as Fortran.
# Warning: "Freeze" format also uses .f. Haven't heard of problems,
diff --git a/erlang_count b/erlang_count
new file mode 100644
index 0000000..7e74d6c
--- /dev/null
+++ b/erlang_count
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# This is part of SLOCCount, a toolsuite that counts
+# source lines of code (SLOC).
+# Copyright (C) 2001-2004 David A. Wheeler.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# To contact David A. Wheeler, see his website at:
+# http://www.dwheeler.com.
+#
+#
+
+generic_count '%%' $@
diff --git a/makefile b/makefile
index 95c9ccb..0531e4f 100644
--- a/makefile
+++ b/makefile
@@ -99,6 +99,7 @@ EXECUTABLES= \
count_extensions \
count_unknown_ext \
csh_count \
+ erlang_count \
exp_count \
fortran_count \
f90_count \