]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/cached-converter.sh
remove a sleep 10 debug command
[xonotic/xonotic.git] / misc / tools / cached-converter.sh
index dd4e3b7d9de923140ae7689ccdd02989bd68d0ef..f09f8e755a1c4d317af9fc04889f9f9506c29392 100755 (executable)
@@ -37,13 +37,9 @@ cached()
        tempfile1="${name1%/*}/new-${name1##*/}"
        [ -z "$outfile2" ] || tempfile2="${name2%/*}/new-${name2##*/}"
        if [ -f "$name1" ]; then
-               echo "$name1 already there, caching"
-               sleep 10
                ln "$name1" "$outfile1" 2>/dev/null || cp "$name1" "$outfile1"
                [ -z "$outfile2" ] || ln "$name2" "$outfile2" 2>/dev/null || cp "$name2" "$outfile2"
        elif "$method" "$infile1" "$infile2" "$tempfile1" "$tempfile2" "$@"; then
-               echo "$name1 not there, making"
-               sleep 10
                mv "$tempfile1" "$name1"
                [ -z "$outfile2" ] || mv "$tempfile2" "$name2"
                ln "$name1" "$outfile1" 2>/dev/null || cp "$name1" "$outfile1"
@@ -74,7 +70,7 @@ reduce_jpeg2_jpeg2()
        cp "$ia" "$oa" && jpegoptim --strip-all -m"$2" "$oa"
 }
 
-reduce_jpeg2_jpeg2()
+reduce_jpeg_jpeg()
 {
        i=$1; shift; shift
        o=$1; shift; shift