summaryrefslogtreecommitdiff
path: root/client/formatXML.sh
blob: c830f3065cd12dc4717e0cf0ab6038b8e93a527d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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