summaryrefslogtreecommitdiff
path: root/tools/edit-map-tileset-names.sh
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-03-07 12:41:48 -0800
committerBen Longbons <b.r.longbons@gmail.com>2014-03-07 12:41:54 -0800
commit0ad0110f8e7f90452c2229fe0031ce68b7b3d1e4 (patch)
treed6c118cb5578652a48de3e0efaf9d4b02fc62a72 /tools/edit-map-tileset-names.sh
parent300be2981298f9939d06f8fdc45a254ea87f6506 (diff)
downloadclientdata-0ad0110f8e7f90452c2229fe0031ce68b7b3d1e4.tar.gz
clientdata-0ad0110f8e7f90452c2229fe0031ce68b7b3d1e4.tar.bz2
clientdata-0ad0110f8e7f90452c2229fe0031ce68b7b3d1e4.tar.xz
clientdata-0ad0110f8e7f90452c2229fe0031ce68b7b3d1e4.zip
Replace tools dir with symlink to the canonical tools repo
This could have been done a while ago, but was delayed in case someone updated their client-data without updating thier server-data.
Diffstat (limited to 'tools/edit-map-tileset-names.sh')
-rwxr-xr-xtools/edit-map-tileset-names.sh15
1 files changed, 0 insertions, 15 deletions
diff --git a/tools/edit-map-tileset-names.sh b/tools/edit-map-tileset-names.sh
deleted file mode 100755
index 6c359e29..00000000
--- a/tools/edit-map-tileset-names.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/bash
-for MAP in maps/*.tmx
-do
- grep '<tileset\|<image' "$MAP" |
- while read TILESET && read IMAGE
- do
- LINE=$TILESET
- TILESET=${TILESET#*name=\"}
- TILESET=${TILESET%%\"*}
- IMAGE=${IMAGE#*source=\"}
- IMAGE=${IMAGE%%.png\"*}
- IMAGE=${IMAGE##*/}
- sed "/$LINE/s/$TILESET/$IMAGE/" -i "$MAP"
- done
-done