X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=misc%2Ftools%2Fcached-converter.sh;h=ccbe0bb862a507b41b0b85d1cf905b0e5408d636;hp=a9098cbfad93f210c5d3782bb6d5f7010abcd5e9;hb=b28f4b26d4a58308f988b838bb10621e1cc48a0b;hpb=9915810783acd33b98183515f5625aa21f2e3458 diff --git a/misc/tools/cached-converter.sh b/misc/tools/cached-converter.sh index a9098cbf..ccbe0bb8 100755 --- a/misc/tools/cached-converter.sh +++ b/misc/tools/cached-converter.sh @@ -175,9 +175,9 @@ for F in "$@"; do will_jpeg=$do_jpeg will_dds=$do_dds case "$f" in + ./models/player/*) will_dds=false ;; ./textures/*) ;; ./models/*) ;; - ./maps/*/*) ;; ./particles/*) ;; ./progs/*) ;; *) @@ -245,7 +245,7 @@ for F in "$@"; do if [ -f "dds/${f}.dds" ]; then if [ -z "${f##./textures/*}" ]; then if [ -n "${f##./textures/*/*}" ]; then - ln -snf "textures/${f%./textures/}.dds" "dds/${f%./textures/}.dds" + ln -snf "textures/${f#./textures/}.dds" "dds/${f#./textures/}.dds" fi fi fi