]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
.flactomp3v2.conf transfer in cluster
authorBastian Dehn <hhaalo@arcor.de>
Fri, 15 Jul 2016 19:06:27 +0000 (21:06 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 15 Jul 2016 19:06:27 +0000 (21:06 +0200)
.flactomp3v2.conf exists and cluster convert
it will be transfer like a basefile
and cleanup wenn it is done

albentohandy.sh

index afd2b06212d503ebb78767b19ff761308524947b..38af988c25710fc614d14f07d440c8d1f3d23fca 100755 (executable)
@@ -32,6 +32,11 @@ mkzip=false
 removework=false
 cptodest=false
 
+if [ -f $HOME/.flactomp3v2.conf ]
+then
+       BASEFILE="--bf $HOME/.flactomp3v2.conf --cleanup"
+fi
+
 # read parameters
 while getopts ":ci:m:S::rz:" optname
 do
@@ -85,7 +90,7 @@ done
 # convert flac to mp3
 # it is the longest phase
 printf "\nPhase %02d of %02d: flac -> mp3\n" $((curphase++)) $phase
-find $work -name '*.flac' | sort | parallel --eta --progress --noswap -S $parallelopts $scriptpath/flactomp3v2.sh {}
+find $work -name '*.flac' | sort | parallel $BASEFILE --eta --progress --noswap -S $parallelopts $scriptpath/flactomp3v2.sh {}
 
 # removing flac and cover.jpg
 printf "\nPhase %02d of %02d: remove flac's and cover's\n\n" $((curphase++)) $phase