Last change
on this file since a954b24 was 1385870, checked in by Andrew Bradford <andrew@…>, 11 years ago |
Don't obfuscate emails
The only ones present are for the license. These are already published
all over the place, so there's no need to add obfuscation.
|
-
Property mode
set to
100755
|
File size:
437 bytes
|
Rev | Line | |
---|
[a94e338] | 1 | #!/bin/sh
|
---|
| 2 | # Written By: Joe Ciccone <jciccone@gmail.com>
|
---|
| 3 |
|
---|
| 4 | if test -z "$1"; then
|
---|
| 5 | echo "Usage: $0 path"
|
---|
| 6 | exit 1
|
---|
| 7 | fi
|
---|
| 8 |
|
---|
| 9 | TOP=`dirname $0`
|
---|
| 10 |
|
---|
| 11 | if test -d "$1"; then
|
---|
| 12 | find "$1" -type f -name \*.html | while read file; do
|
---|
| 13 | tidy -config "${TOP}/tidy.conf" "$file"
|
---|
| 14 | sed -i -e "s@text/html@application/xhtml+xml@g" "$file"
|
---|
| 15 | done
|
---|
| 16 | else
|
---|
| 17 | tidy -config "${TOP}/tidy.conf" "$1"
|
---|
| 18 | sed -i -e "s@text/html@application/xhtml+xml@g" "$1"
|
---|
| 19 | fi
|
---|
| 20 |
|
---|
| 21 | exit $?
|
---|
Note:
See
TracBrowser
for help on using the repository browser.