summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-25 10:14:18 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-25 10:14:18 -0300
commit974e5cd855c0cbe1b7e6955a5cd7380d3b9d990f (patch)
tree8dfd4790580a6b4b9fdada6c3f98263424442bdb
parent4d46ae89a169c608e59798fd507fad1e04408a73 (diff)
downloadclientdata-974e5cd855c0cbe1b7e6955a5cd7380d3b9d990f.tar.gz
clientdata-974e5cd855c0cbe1b7e6955a5cd7380d3b9d990f.tar.bz2
clientdata-974e5cd855c0cbe1b7e6955a5cd7380d3b9d990f.tar.xz
clientdata-974e5cd855c0cbe1b7e6955a5cd7380d3b9d990f.zip
Add converter utility
-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
+