]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
fix: 80 character per line albentohandy
authorBastian Dehn <hhaalo@arcor.de>
Sat, 25 Nov 2017 13:23:07 +0000 (14:23 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 25 Nov 2017 13:40:42 +0000 (14:40 +0100)
albentohandy

index eae99522552331e1b25713a3a4f397bc98a602ad..d8283dd3ce1b6803d09671fb6b01cc100d6ad3ca 100755 (executable)
@@ -11,15 +11,19 @@ NAME
     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
 
@@ -45,7 +49,9 @@ ConvertFlacToMp3() {
 
        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() {
@@ -250,19 +256,22 @@ main() {
        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
@@ -275,7 +284,8 @@ main() {
        fi
 
        # delete the working directory
-       if ( [ $mkzip == true ] || [ $cptodest == true ] ) && [ $removework == true ]; then
+       if ([ $mkzip == true ] || [ $cptodest == true ]) \
+               && [ $removework == true ]; then
                CleanupWorkDir "$WORK"
        fi
 }