summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xitems/convert.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/items/convert.sh b/items/convert.sh
new file mode 100755
index 00000000..81b67959
--- /dev/null
+++ b/items/convert.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+TARGET="equip-2hand"
+
+cd $TARGET
+sed -i '/xml version/d' *.xml
+sed -i '/items/d' *.xml
+echo "<?xml version=\"1.0\"?>" > ../$TARGET.xml
+echo "<items>" >> ../$TARGET.xml
+echo "REPORT FOR ../$TARGET.xml ========="
+cat ../$TARGET.xml
+echo "==================================="
+cat *.xml >> ../$TARGET.xml
+echo "</items>" >> ../$TARGET.xml
+cd .. ; rm -r $TARGET
+tidy -m --indent-attributes y -xml -i $TARGET.xml
+