From 974e5cd855c0cbe1b7e6955a5cd7380d3b9d990f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 25 May 2021 10:14:18 -0300 Subject: Add converter utility --- items/convert.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 items/convert.sh 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 "" > ../$TARGET.xml +echo "" >> ../$TARGET.xml +echo "REPORT FOR ../$TARGET.xml =========" +cat ../$TARGET.xml +echo "===================================" +cat *.xml >> ../$TARGET.xml +echo "" >> ../$TARGET.xml +cd .. ; rm -r $TARGET +tidy -m --indent-attributes y -xml -i $TARGET.xml + -- cgit v1.2.3-60-g2f50