Thanks to mick.saunders and sanelson for the report and patch.
Closes issue 84.
git-svn-id: http://abcde.googlecode.com/svn/trunk@377
a0fa61bc-5347-0410-a1a9-
7f54aa4e1825
# We should have diskutil in OSX, but let's be sure...
NEEDDISKUTIL=y
CDROMREADERSYNTAX=cddafs
# We should have diskutil in OSX, but let's be sure...
NEEDDISKUTIL=y
CDROMREADERSYNTAX=cddafs
+ # We won't find the eject program in OSX, and doing checkexec will fail further below...
+ unset EJECT
elif [ X$(uname) = "XOpenBSD" ] ; then
HTTPGET=wget
MD5SUM=md5
elif [ X$(uname) = "XOpenBSD" ] ; then
HTTPGET=wget
MD5SUM=md5
# We are now finished with the cdrom - it can be safely ejected. Note that
# abcde will not have completed yet.
# We are now finished with the cdrom - it can be safely ejected. Note that
# abcde will not have completed yet.
-if [ "$EJECTCD" = "y" ] && [ -x $(which $EJECT) ]; then
+if [ "$EJECTCD" = "y" ]; then
# We check if the disk we are processing is actually the disk inside the
# CD tray. If not, we do not eject the CD, since it might be so that the
# user ejected it manually.
# We check if the disk we are processing is actually the disk inside the
# CD tray. If not, we do not eject the CD, since it might be so that the
# user ejected it manually.
$eject $EJECTOPTS $cd
elif [ X"$(uname)" = X"Darwin" ] ; then
diskutil eject ${CDROM#/dev/} 0
$eject $EJECTOPTS $cd
elif [ X"$(uname)" = X"Darwin" ] ; then
diskutil eject ${CDROM#/dev/} 0
+ elif [ -x $(which $EJECT) ]; then
$EJECT $EJECTOPTS "$CDROM"
fi
#fi
$EJECT $EJECTOPTS "$CDROM"
fi
#fi