summaryrefslogtreecommitdiff
path: root/client/list-tileset-order
diff options
context:
space:
mode:
Diffstat (limited to 'client/list-tileset-order')
-rwxr-xr-xclient/list-tileset-order15
1 files changed, 15 insertions, 0 deletions
diff --git a/client/list-tileset-order b/client/list-tileset-order
new file mode 100755
index 0000000..b8d3f85
--- /dev/null
+++ b/client/list-tileset-order
@@ -0,0 +1,15 @@
+#!/bin/bash
+DIR=${1:-maps}
+for MAP in $(ls "$DIR" | grep '\.tmx$' )
+do
+ echo -n "${MAP%.tmx}:"
+ grep '<tileset' "$DIR/$MAP" |
+ while read TILESET
+ do
+ TILESET=${TILESET#*source=\"}
+ TILESET=${TILESET%%.tsx\"*}
+ TILESET=${TILESET##*/}
+ echo -n " $TILESET"
+ done
+ echo
+done