blob: ce3b49f4c2540b4c07f5dd1616da3074331c06ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/bash
# simple script to check html via tidy. Either specify html files on
# command line or rely on default which checks all html files in
# current directory
set -o nounset
set -o errexit
CheckFile () {
echo "========================================"
echo "checking $1"
echo "========================================"
tidy -e -q $1
}
if [ $# -eq 0 ] ; then
for file in *.html ; do
CheckFile ${file}
done
else
for file in $* ; do
CheckFile ${file}
done
fi
|