fi
}
-main() {
- WORK="$(pwd)/work.$$" # temporary working directory
- SCRIPTPATH="/usr/bin" # path to flactomp3v2 and notify.sh script
- MUSICPATH="/tmp/musikpath" # flac collection directory
-
- ExistsBasicProgramms
- LoadConfig
- ExistsScripts "$SCRIPTPATH"
- SetDefaultVariables
-
- ReadArguments $*
-
- ExistsAlbumlist "$albumlist"
- CreateWorkDirectory "$WORK"
-
+ConvertProcess() {
printf "\nPhase %02d of %02d:\n" $((curphase++)) $phase
printf "create symlinks of flac's in %s\n" "$WORK"
MakeSymlinksToWork "$WORK" "$MUSICPATH" "$albumlist"
printf "\nPhase %02d of %02d: " $((curphase++)) $phase
printf "remove flac's and cover's\n\n"
CleanupFlacAndCovers "$WORK"
+}
+AdvancedFeatures() {
# create sha256sum in working directory
if [ $checksum == true ]; then
printf "Phase %02d of %02d: " $((curphase++)) $phase
fi
}
+main() {
+ WORK="$(pwd)/work.$$" # temporary working directory
+ SCRIPTPATH="/usr/bin" # path to flactomp3v2 and notify.sh script
+ MUSICPATH="/tmp/musikpath" # flac collection directory
+
+ ExistsBasicProgramms
+ LoadConfig
+ ExistsScripts "$SCRIPTPATH"
+ SetDefaultVariables
+
+ ReadArguments $*
+
+ ExistsAlbumlist "$albumlist"
+ CreateWorkDirectory "$WORK"
+
+ ConvertProcess
+ AdvancedFeatures
+}
+
main $*
exit 0