|| errlog "library flac.sh not found" \
|| return $?
- source "$LIBS/voribs.sh"
- source "$LIBS/mp3.sh"
- source "$LIBS/opus.sh"
- source "$LIBS/flac.sh"
+ source "$LIBS/voribs.sh" || return $?
+ source "$LIBS/mp3.sh" || return $?
+ source "$LIBS/opus.sh" || return $?
+ source "$LIBS/flac.sh" || return $?
}
cleanup_flac()
check_programms()
{
- command -v flac > /dev/null \
- || errlog "command flac not found" \
- || return $?
- command -v metaflac > /dev/null \
- || errlog "command metaflac not found" \
- || return $?
- command -v oggenc > /dev/null \
- || errlog "command oggenc not found" \
- || return $?
- command -v lame > /dev/null \
- || errlog "command lame not found" \
- || return $?
- command -v opusenc > /dev/null \
- || errlog "command opusenc not found" \
- || return $?
- command -v vorbiscomment > /dev/null \
- || errlog "command vorbiscomment not found" \
- || return $?
- command -v eyeD3 > /dev/null \
- || errlog "command eyeD3 not found" \
- || return $?
- command -v parallel > /dev/null \
- || errlog "command parallel not found" \
- || return $?
command -v rsync > /dev/null \
|| errlog "command rsync not found" \
|| return $?
--progress \
flac_to_mp3 {}
}
+
+check_mp3_programs()
+{
+ command -v flac > /dev/null \
+ || errlog "command flac not found" \
+ || return $?
+ command -v lame > /dev/null \
+ || errlog "command lame not found" \
+ || return $?
+ command -v eyeD3 > /dev/null \
+ || errlog "command eyeD3 not found" \
+ || return $?
+ command -v parallel > /dev/null \
+ || errlog "command parallel not found" \
+ || return $?
+}
+
+check_mp3_programs
--progress \
flac_to_opus {}
}
+
+check_opus_programs()
+{
+ command -v opusenc > /dev/null \
+ || errlog "command opusenc not found" \
+ || return $?
+ command -v parallel > /dev/null \
+ || errlog "command parallel not found" \
+ || return $?
+}
+
+check_opus_programs
| parallel --will-cite --ungroup --eta --progress \
flac_to_vorbis "{}"
}
+
+check_vorbis_programs()
+{
+ command -v flac > /dev/null \
+ || errlog "command flac not found" \
+ || return $?
+ command -v metaflac > /dev/null \
+ || errlog "command metaflac not found" \
+ || return $?
+ command -v oggenc > /dev/null \
+ || errlog "command oggenc not found" \
+ || return $?
+ command -v vorbiscomment > /dev/null \
+ || errlog "command vorbiscomment not found" \
+ || return $?
+ command -v parallel > /dev/null \
+ || errlog "command parallel not found" \
+ || return $?
+}
+
+check_vorbis_programs