X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=misc%2Ftools%2Fcached-converter.sh;h=361265881865430d5b4ccaa09924d7bca6709003;hp=a9098cbfad93f210c5d3782bb6d5f7010abcd5e9;hb=db5c45ff17e7e30a234d43ba1830fa902d8a8c65;hpb=b60cfbb1ea312f06180945a91a616a5273d7c216 diff --git a/misc/tools/cached-converter.sh b/misc/tools/cached-converter.sh index a9098cbf..36126588 100755 --- a/misc/tools/cached-converter.sh +++ b/misc/tools/cached-converter.sh @@ -105,8 +105,10 @@ reduce_ogg_ogg() { i=$1; shift; shift o=$1; shift; shift + tags=`vorbiscomment -R -l "$i"` oggdec -o "$tmpdir/x.wav" "$i" && \ oggenc -q"$1" -o "$o" "$tmpdir/x.wav" + echo "$tags" | vorbiscomment -R -w "$o" } reduce_wav_ogg() @@ -175,9 +177,11 @@ for F in "$@"; do will_jpeg=$do_jpeg will_dds=$do_dds case "$f" in + *_bump) will_dds=false ;; + ./models/player/*) will_dds=false ;; + ./models/sprites/*) will_dds=false ;; ./textures/*) ;; ./models/*) ;; - ./maps/*/*) ;; ./particles/*) ;; ./progs/*) ;; *) @@ -245,7 +249,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