Fix abcde.mkcue() when handling the --wholedisk option.
authorSteve McIntyre <steve@einval.com>
Wed, 21 Feb 2018 21:20:45 +0000 (21:20 +0000)
committerSteve McIntyre <steve@einval.com>
Wed, 21 Feb 2018 21:20:45 +0000 (21:20 +0000)
Thanks to Nino Burini for the patch. Closes Issue 47 and maybe also
45:

https://abcde.einval.com/bugzilla/show_bug.cgi?id=47
https://abcde.einval.com/bugzilla/show_bug.cgi?id=45

abcde
changelog

diff --git a/abcde b/abcde
index 715c96a..cb82926 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -1928,7 +1928,7 @@ abcde.mkcue () {
        local i OFFSET LBA
        local CUEWAVFILE
 
-       if [ "$1" = --wholedisc ] ; then
+       if [ "$1" = --wholedisk ] ; then
                MODE=INDEX
        else
                MODE=PREGAP
@@ -4701,6 +4701,10 @@ case "$CUEREADERSYNTAX" in
                CUEREADEROPTS="${CDROM}"
                CUEREADER="$MKCUE"
                ;;
+       abcde.mkcue)
+               CUEREADEROPTS="$MKCUEOPTS ${CDROM}"
+               CUEREADER="$MKCUE"
+               ;;
 esac
 
 # which information retrieval tool are we using?
index d7900ea..d5a695d 100644 (file)
--- a/changelog
+++ b/changelog
@@ -61,6 +61,10 @@ abcde 2.8.2
    Apply fix suggested by petecollins24@gmail.com; add PREGAP to
    LEADOUT to correct Musicbrainz ID calculation. Hopefully closes
    Issue 54: https://abcde.einval.com/bugzilla/show_bug.cgi?id=54
+ * Fix abcde.mkcue() when handling the --wholedisk option. Thanks to
+   Nino Burini for the patch. Closes Issue 47 and maybe also 45:
+   https://abcde.einval.com/bugzilla/show_bug.cgi?id=47
+   https://abcde.einval.com/bugzilla/show_bug.cgi?id=45
    
 abcde 2.8.1.