]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
try being more verbose (DEBUG)
authorRudolf Polzer <divVerent@xonotic.org>
Fri, 17 Jun 2011 19:39:57 +0000 (21:39 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Fri, 17 Jun 2011 19:39:57 +0000 (21:39 +0200)
misc/tools/cached-converter.sh

index 104b657d2bfd8188ff69264b1bb6e66f824c1546..1c7051456ff69d1bbc4604b91e58d266a0fb3095 100755 (executable)
@@ -121,8 +121,8 @@ cached()
        [ -z "$outfile2" ] || tempfile2="${name2%/*}/new-${name2##*/}"
        if [ -f "$name1" ] && { [ -z "$outfile2" ] || [ -f "$name2" ]; }; then
                selfprofile convert_copyoutput
-               case "$outfile1" in */*) mkdir -p "${outfile1%/*}"; esac && { ln -f "$name1" "$outfile1" 2>/dev/null || { rm -f "$outfile1" && cp "$name1" "$outfile1"; }; }
-               [ -z "$outfile2" ] || { case "$outfile2" in */*) mkdir -p "${outfile2%/*}"; esac && { ln -f "$name2" "$outfile2" 2>/dev/null || { rm -f "$outfile2" && cp "$name2" "$outfile2"; }; }; }
+               case "$outfile1" in */*) mkdir -p "${outfile1%/*}"; esac && { ln -vf "$name1" "$outfile1" || { rm -f "$outfile1" && cp "$name1" "$outfile1"; }; }
+               [ -z "$outfile2" ] || { case "$outfile2" in */*) mkdir -p "${outfile2%/*}"; esac && { ln -vf "$name2" "$outfile2" || { rm -f "$outfile2" && cp "$name2" "$outfile2"; }; }; }
                conv=true
        elif selfprofile convert_makeoutput; "$method" "$infile1" "$infile2" "$tempfile1" "$tempfile2" "$@"; then
                mv "$tempfile1" "$name1"