Package: sloccount
Version: 2.26-3
Tags: patch
Severity: wishlist
The patch in attachment adds vhdl support in sloccount
--
Elie De Brauwer
diff -urNad sloccount-2.26.orig/break_filelist sloccount-2.26/break_filelist
--- sloccount-2.26.orig/break_filelist 2008-12-12 13:42:32.000000000 +0100
+++ sloccount-2.26/break_filelist 2008-12-12 13:43:31.000000000 +0100
@@ -205,6 +205,7 @@
"hs" => "haskell", "lhs" => "haskell",
# ???: .pco is Oracle Cobol
"jsp" => "jsp", # Java server pages
+ "vhd" => "vhdl", # VHDL code
);
diff -urNad sloccount-2.26.orig/debian/rules sloccount-2.26/debian/rules
--- sloccount-2.26.orig/debian/rules 2008-12-12 13:42:32.000000000 +0100
+++ sloccount-2.26/debian/rules 2008-12-12 13:50:40.000000000 +0100
@@ -15,6 +15,7 @@
get_sloc \
get_sloc_details \
jsp_count \
+ vhdl_count \
lexcount1 \
make_filelists \
pascal_count \
diff -urNad sloccount-2.26.orig/vhdl_count sloccount-2.26/vhdl_count
--- sloccount-2.26.orig/vhdl_count 1970-01-01 01:00:00.000000000 +0100
+++ sloccount-2.26/vhdl_count 2008-12-12 13:43:56.000000000 +0100
@@ -0,0 +1,27 @@
+#!/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 '#' $@
+