will_jpeg=$do_jpeg
will_dds=$do_dds
case "$f" in
+ ./models/player/*) will_dds=false ;;
./textures/*) ;;
./models/*) ;;
- ./maps/*/*) ;;
./particles/*) ;;
./progs/*) ;;
*)
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