r197@frost: data | 2005-10-07 18:22:25 +0300
authordata <data@a0fa61bc-5347-0410-a1a9-7f54aa4e1825>
Fri, 7 Oct 2005 15:22:50 +0000 (15:22 +0000)
committerdata <data@a0fa61bc-5347-0410-a1a9-7f54aa4e1825>
Fri, 7 Oct 2005 15:22:50 +0000 (15:22 +0000)
 Pipes and move now work fine

git-svn-id: http://abcde.googlecode.com/svn/trunk@141 a0fa61bc-5347-0410-a1a9-7f54aa4e1825

abcde

diff --git a/abcde b/abcde
index 21dff41..d23fc80 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -854,6 +854,8 @@ do_encode ()
                        esac
                        if [ X"$USEPIPES" = "Xy" ]; then
                                RUN_COMMAND=""
+                               # We need a way to store the creation of the files when using PIPES
+                               RUN_COMMAND_PIPES="run_command encodetrack-$OUTPUT-$1 true"
                        else
                                run_command '' echo "Encoding track $1 of $TRACKS: $TRACKNAME..."
                                RUN_COMMAND="run_command encodetrack-$OUTPUT-$1"
@@ -928,9 +930,9 @@ do_encode ()
                                ;;
                        wav)
                                # In case of wav output we need nothing. Just keep the wavs.
-                               run_command encodetrack-$OUTPUT-$1 true
                                ;;
                        esac
+                       $RUN_COMMAND_PIPES
                done
                # Only remove .wav if the encoding succeeded
                if checkerrors "encodetrack-(.{3,6})-$1"; then :; else