Adjusted linkchk script to ignore now non-existant LICENSE and to check updated automake/autoconf files
parent
fb50c8351a
commit
c86bbf7458
|
@ -1,9 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
|
||||||
# Code quality tool; check line length of each file in certain directories
|
# 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
|
# Copyright (C) 2012, 2013 Mike Gerwitz
|
||||||
#
|
#
|
||||||
# This file is part of GNU ease.js.
|
# This file is part of GNU ease.js.
|
||||||
|
@ -20,6 +17,8 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# For a list of ignored patterns, see chk-linelen-ignores
|
||||||
##
|
##
|
||||||
|
|
||||||
root="${1:-.}"
|
root="${1:-.}"
|
||||||
|
@ -37,7 +36,7 @@ hideignores()
|
||||||
# output all file with lines > 80 characters and exit successfully if grep has a
|
# output all file with lines > 80 characters and exit successfully if grep has a
|
||||||
# non-zero status code, indicating that no matches were found
|
# non-zero status code, indicating that no matches were found
|
||||||
cd "$root" && \
|
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 {} \; \
|
-type f -exec wc -L {} \; \
|
||||||
| hideignores \
|
| hideignores \
|
||||||
| grep -v '^\([0-7][0-9]\?\|80\?\) ' \
|
| grep -v '^\([0-7][0-9]\?\|80\?\) ' \
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
# any file matching any pattern in this file is ignored by the line check tool
|
# any file matching any pattern in this file is ignored by the line check tool
|
||||||
# (uses POSIX regular expressions, as is default in grep)
|
# (uses POSIX regular expressions, as is default in grep)
|
||||||
doc/highlight.pack.js$
|
doc/highlight.pack\.js$
|
||||||
doc/.*.html\?$
|
doc/.*\.html\?$
|
||||||
.png$
|
doc/Makefile\(\.in\)\?$
|
||||||
.dia$
|
\.png$
|
||||||
.jar$
|
\.dia$
|
||||||
.info$
|
\.jar$
|
||||||
Makefile
|
\.info$
|
||||||
|
|
Loading…
Reference in New Issue