Merge branch 'master' of ssh://git.xonotic.org/xonotic-maps.pk3dir
authorRudolf Polzer <divverent@alientrap.org>
Tue, 5 Oct 2010 18:52:07 +0000 (20:52 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 5 Oct 2010 18:52:07 +0000 (20:52 +0200)
scripts/shader-convert-nex2xon.sh

index 75efcd8521d11139dfaeb28519b9dc256f15d9ae..e7118cdbc5a2ebc4eab91a1ba691220bced0094d 100755 (executable)
@@ -1,10 +1,11 @@
 f=$1
 map()
 {
-       to=$1
+       rawfile=$1
        from=$2
-       # rawfile=$3
+       to=$3
        sed -i "s,\<${from#textures/}\>,${to#textures/}," "$f"
+       sed -i "s,\<${rawfile#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