summaryrefslogtreecommitdiff
path: root/scripts/tidy
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/tidy')
-rwxr-xr-xscripts/tidy16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/tidy b/scripts/tidy
new file mode 100755
index 0000000..0cbd3e8
--- /dev/null
+++ b/scripts/tidy
@@ -0,0 +1,16 @@
+#!/bin/bash
+#
+# Tidy one XML file
+#
+if [ -z "$1" ]; then
+ echo "Usage $0 <file to tidy>"
+ exit
+fi
+
+if [ ! -r $1 ]; then
+ echo "Cant find $1"
+ exit
+fi
+
+xsltproc xslt/clean-entitydescriptor.xsl $1 > $1.c && mv $1.c $1
+