From: Bastian Dehn Date: Tue, 28 Jun 2016 19:29:01 +0000 (+0200) Subject: translate to english X-Git-Tag: v1.0.0^2~151 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=ef7d13bee9b61f0f89aea5b05947afb6e2a62bc9;p=albentohandy.git translate to english --- diff --git a/albentohandy.sh b/albentohandy.sh index 720651d..5e80203 100755 --- a/albentohandy.sh +++ b/albentohandy.sh @@ -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