summaryrefslogtreecommitdiff
path: root/client/formatXML.sh
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-12-14 10:24:48 -0800
committerBen Longbons <b.r.longbons@gmail.com>2013-12-14 10:24:48 -0800
commit78875e3c896656458d000c1987b1b0856fdb2bbe (patch)
tree9da2a6949fec98f2f48fc5f3f3799829a139be6c /client/formatXML.sh
parentbf2e24c6ed00e67466c1dbf967c23eef29aaf73e (diff)
parent709373a850e6c96aa03b56c8e0865a09db91b341 (diff)
downloadtools-78875e3c896656458d000c1987b1b0856fdb2bbe.tar.gz
tools-78875e3c896656458d000c1987b1b0856fdb2bbe.tar.bz2
tools-78875e3c896656458d000c1987b1b0856fdb2bbe.tar.xz
tools-78875e3c896656458d000c1987b1b0856fdb2bbe.zip
Merge remote-tracking branch 'origin/client'
Diffstat (limited to 'client/formatXML.sh')
-rwxr-xr-xclient/formatXML.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/client/formatXML.sh b/client/formatXML.sh
new file mode 100755
index 0000000..c830f30
--- /dev/null
+++ b/client/formatXML.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+cd ..
+
+for f in $(find -name "*.xml")
+do
+ if [ ${f} != "./items.xml" ]; then
+ xsltproc tools/indent.xsl ${f} > ${f}__
+ mv ${f}__ ${f}
+ fi
+done
+xmlindent items.xml > items.xml_
+sed 's/[[:space:]]*$//' items.xml_ > items.xml