diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-12-14 10:24:48 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-12-14 10:24:48 -0800 |
commit | 78875e3c896656458d000c1987b1b0856fdb2bbe (patch) | |
tree | 9da2a6949fec98f2f48fc5f3f3799829a139be6c /client/formatXML.sh | |
parent | bf2e24c6ed00e67466c1dbf967c23eef29aaf73e (diff) | |
parent | 709373a850e6c96aa03b56c8e0865a09db91b341 (diff) | |
download | tools-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-x | client/formatXML.sh | 13 |
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 |