]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
translate to english
authorBastian Dehn <hhaalo@arcor.de>
Tue, 28 Jun 2016 19:29:01 +0000 (21:29 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 28 Jun 2016 19:29:01 +0000 (21:29 +0200)
albentohandy.sh

index 720651dfaed5e9fef7ea4ba9dd7062c5b9810bb2..5e80203b2e9f77bd21a183a1b92adeedf4c4f6b7 100755 (executable)
@@ -15,9 +15,7 @@ removework=false
 
 if [ ! -f albumlist ]
 then
-       echo
-       echo "albumlist ist nicht erstellt"
-       echo
+       printf "\nalbumlist does not exists\n\n"
        exit
 fi
 
@@ -45,8 +43,7 @@ do
        esac
 done
 
-echo
-printf "Phase %02d von %02d: flac's in das Arbeitsverzeichnis %s verlinken\n" $((curphase++)) $phase "$work"
+printf "\nPhase %02d of %02d: create symlinks of flac's to working directory %s\n" $((curphase++)) $phase "$work"
 
 if [ ! -d $work ]
 then
@@ -59,30 +56,29 @@ do
        cp -rs $musicpath/$i $work/
 done
 
-echo
-printf "Phase %02d von %02d: flac -> mp3\n" $((curphase++)) $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 {}
-echo
-printf "Phase %02d von %02d: flac's und cover's loeschen\n" $((curphase++)) $phase
-echo
+
+printf "\nPhase %02d of %02d: remove flac's and cover's\n\n" $((curphase++)) $phase
 find $work -name '*.flac' | sort | xargs rm
 find $work -name 'cover*' | sort | xargs rm
+
 if [ $checksum == true ]
 then
-       printf "Phase %02d von %02d: erstelle sha256sum\n" $((curphase++)) $phase
+       printf "Phase %02d of %02d: create sha256sum\n\n" $((curphase++)) $phase
        find $work -name '*.mp3' | sort | xargs sha256sum | sed "s=$work/==" >> $work/sha256sum
-       echo
 fi
 if [ $mkzip == true ]
 then
-       printf "Phase %02d von %02d: erstelle handy.zip\n" $((curphase++)) $phase
+       printf "Phase %02d of %02d: create %s\n" $((curphase++)) $phase $zipname
        curpath=$(pwd)
        cd $work
        7z a -bd -mmt=off -mm=Copy $curpath/$zipname .
        cd $curpath
-       echo
+       printf "\n"
 fi
 if [ $mkzip == true ] && [ $removework == true ]
 then
+       printf "cleanup working directory\n\n"
        rm -r $work
 fi