albumtohandy - konvertiert flac to mp3 von einer Sammlung
SYNOPSIS
- albentohandy [-c] [-i <inputfile] [-m <destfolder] [-S [<jobs>]/<sshlogin>[,[<jobs>]/<sshlogin>]..] [-r] [-z <zipfile]
+ albentohandy [-c] [-i <inputfile] [-m <destfolder]
+ [-S [<jobs>]/<sshlogin>[,[<jobs>]/<sshlogin>]..] [-r] [-z <zipfile]
OPTIONS
-c generiert eine sha256sum
-h show this help
-i <file> input Datei default=albumlist
- -m <dest> kopiert das Arbeitsverzeichnis in das angegeben Zielverzeichnis
- -S [<jobs>]/<sshlogin> parallel mehr information in der Manpage von parallel
- -r löscht das Arbeitsverzeichnis wenn -z oder -m angegeben ist
+ -m <dest> kopiert das Arbeitsverzeichnis
+ in das angegeben Zielverzeichnis
+ -S [<jobs>]/<sshlogin> parallel mehr information
+ in der Manpage von parallel
+ -r löscht das Arbeitsverzeichnis
+ wenn -z oder -m angegeben ist
-w <workdir> das Arbeitsverzeichnis angegeben
-z <zipfile> erstellt ein Zip Datei
find $workdir -name '*.flac' | \
sort | \
- parallel $basefile --will-cite --ungroup --eta --progress --sshlogin $parallelopts $scriptdir/flactomp3v2 {}
+ parallel $basefile --will-cite --ungroup --eta --progress --sshlogin \
+ $parallelopts \
+ $scriptdir/flactomp3v2 {}
}
CleanupFlacAndCovers() {
printf "\nPhase %02d of %02d: flac -> mp3\n" $((curphase++)) $phase
ConvertFlacToMp3 "$WORK" "$BASEFILE" "$parallelopts" "$SCRIPTPATH"
- printf "\nPhase %02d of %02d: remove flac's and cover's\n\n" $((curphase++)) $phase
+ printf "\nPhase %02d of %02d: " $((curphase++)) $phase
+ printf "remove flac's and cover's\n\n"
CleanupFlacAndCovers "$WORK"
# create sha256sum in working directory
if [ $checksum == true ]; then
- printf "Phase %02d of %02d: create sha256sum\n\n" $((curphase++)) $phase
+ printf "Phase %02d of %02d: " $((curphase++)) $phase
+ printf "create sha256sum\n\n"
MakeSha256CheckSum "$WORK"
fi
# make zipfile in the current path
# content of zipfile is content of working directory
if [ $mkzip == true ]; then
- printf "Phase %02d of %02d: create %s\n" $((curphase++)) $phase $zipname
+ printf "Phase %02d of %02d: " $((curphase++)) $phase
+ printf " create %s\n" $zipname
MakeZipFile "$WORK" "$zipname"
printf "\n"
fi
fi
# delete the working directory
- if ( [ $mkzip == true ] || [ $cptodest == true ] ) && [ $removework == true ]; then
+ if ([ $mkzip == true ] || [ $cptodest == true ]) \
+ && [ $removework == true ]; then
CleanupWorkDir "$WORK"
fi
}