]> git.rm.cloudns.org Git - xonotic/xonotic-maps.pk3dir.git/commitdiff
fix typos in the script
authorRudolf Polzer <divverent@alientrap.org>
Sun, 12 Sep 2010 17:04:53 +0000 (19:04 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 12 Sep 2010 17:04:53 +0000 (19:04 +0200)
scripts/shader-convert-nex2xon.sh

index 68f0bfc3941e8ad8e902f69490f9b8e27d68c524..75efcd8521d11139dfaeb28519b9dc256f15d9ae 100755 (executable)
@@ -1,10 +1,10 @@
 f=$1
 map()
 {
-       from=$1
-       to=$2
+       to=$1
+       from=$2
        # rawfile=$3
-       sed -i "s,\\<${from#textures/}\\>,\\<${to#textures/}\\>,g" "$f"
+       sed -i "s,\<${from#textures/}\>,${to#textures/}," "$f"
 }
 map textures/exx/base/base_crete01 textures/eX/eX_cretebase_01 textures/exx/base-crete01
 map textures/exx/base/base_crete02 textures/eX/eX_cretebase_02 textures/exx/base-crete02