1
0
Fork 0

Adjusted linkchk script to ignore now non-existant LICENSE and to check updated automake/autoconf files

perfodd
Mike Gerwitz 2014-01-16 00:04:26 -05:00
parent fb50c8351a
commit c86bbf7458
2 changed files with 10 additions and 11 deletions

View File

@ -1,9 +1,6 @@
#!/bin/sh
#
# Code quality tool; check line length of each file in certain directories
#
# For a list of ignored patterns, see chk-linelen-ignores
#
# Copyright (C) 2012, 2013 Mike Gerwitz
#
# This file is part of GNU ease.js.
@ -20,6 +17,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# For a list of ignored patterns, see chk-linelen-ignores
##
root="${1:-.}"
@ -37,7 +36,7 @@ hideignores()
# output all file with lines > 80 characters and exit successfully if grep has a
# non-zero status code, indicating that no matches were found
cd "$root" && \
find lib/ tools/ test/ doc/ README* LICENSE Makefile *.js \
find lib/ tools/ test/ doc/ README* Makefile.am configure.ac *.js \
-type f -exec wc -L {} \; \
| hideignores \
| grep -v '^\([0-7][0-9]\?\|80\?\) ' \

View File

@ -1,9 +1,9 @@
# any file matching any pattern in this file is ignored by the line check tool
# (uses POSIX regular expressions, as is default in grep)
doc/highlight.pack.js$
doc/.*.html\?$
.png$
.dia$
.jar$
.info$
Makefile
doc/highlight.pack\.js$
doc/.*\.html\?$
doc/Makefile\(\.in\)\?$
\.png$
\.dia$
\.jar$
\.info$