aboutsummaryrefslogtreecommitdiffstats
path: root/goTidy
diff options
context:
space:
mode:
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