aboutsummaryrefslogtreecommitdiffstats
path: root/goTidy
diff options
context:
space:
mode:
authorManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-05-08 14:19:53 +0000
committerManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-05-08 14:19:53 +0000
commitded6dddb89cade026e592cd386790b5b10e6fe00 (patch)
tree3e628a075a59b9ee298376729b44a4151d039c59 /goTidy
parente4bf4c7e72fabd039b21b78313d43ce2138c1e7d (diff)
Updated the stylesheets to their current version.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3529 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'goTidy')
-rw-r--r--goTidy17
1 files changed, 17 insertions, 0 deletions
diff --git a/goTidy b/goTidy
new file mode 100644
index 000000000..e2f4eed02
--- /dev/null
+++ b/goTidy
@@ -0,0 +1,17 @@
+#!/bin/bash
+#######################################################################
+#
+# File: goTidy
+#
+# Description: Tidy is best used inside a loop, but Makefiles don't do
+# bash loops well. This file alleviates that problem.
+#
+# Author: James Robertson
+#
+########################################################################
+
+for file in `find "$1" -name "*.html"`; do
+ tidy -config tidy.conf $file
+done
+
+exit 0