From: Rudolf Polzer Date: Tue, 5 Oct 2010 18:51:53 +0000 (+0200) Subject: fix shader converter, and make it prevent a messup it did before X-Git-Tag: xonotic-v0.1.0preview~118 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=92951729552e0e242e4e853472a836f1109494e8;p=xonotic%2Fxonotic-maps.pk3dir.git fix shader converter, and make it prevent a messup it did before --- diff --git a/scripts/shader-convert-nex2xon.sh b/scripts/shader-convert-nex2xon.sh index 75efcd85..e7118cdb 100755 --- a/scripts/shader-convert-nex2xon.sh +++ b/scripts/shader-convert-nex2xon.sh @@ -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