clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 835fb3e was c695188, checked in by Joe Ciccone <jciccone@…>, 15 years ago |
Rearrange the makefile. Create a tidy.sh script to replace the tidy target and create a tidy target that calls this script. Also make sure that the rendertmp dir is available for whatever target needs it.
|
-
Property mode
set to
100755
|
File size:
512 bytes
|
Rev | Line | |
---|
[c695188] | 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 | bash "${TOP}/obfuscate.sh" "$file"
|
---|
| 15 | sed -i -e "s@text/html@application/xhtml+xml@g" "$file"
|
---|
| 16 | done
|
---|
| 17 | else
|
---|
| 18 | tidy -config "${TOP}/tidy.conf" "$1"
|
---|
| 19 | bash "${TOP}/obfuscate.sh" "$1"
|
---|
| 20 | sed -i -e "s@text/html@application/xhtml+xml@g" "$1"
|
---|
| 21 | fi
|
---|
| 22 |
|
---|
| 23 | exit $?
|
---|
Note:
See
TracBrowser
for help on using the repository browser.