if [ ! -f albumlist ]
then
- echo
- echo "albumlist ist nicht erstellt"
- echo
+ printf "\nalbumlist does not exists\n\n"
exit
fi
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
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