From 92951729552e0e242e4e853472a836f1109494e8 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 5 Oct 2010 20:51:53 +0200 Subject: [PATCH] fix shader converter, and make it prevent a messup it did before --- scripts/shader-convert-nex2xon.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2