Ticket #23948: abcde-10.6.diff
File abcde-10.6.diff, 2.0 KB (added by chrisg@…, 15 years ago) |
---|
-
/opt/local/bin/abcde
old new 1101 1101 vecho -n "Getting CD track info... " 1102 1102 # In OSX, unmount the disc before a query 1103 1103 if [ "$OSFLAVOUR" = "OSX" ]; then 1104 disk tool -u${CDROM#/dev/}1104 diskutil unmount ${CDROM#/dev/} 1105 1105 fi 1106 1106 TRACKINFO=$($CDDISCID $CDROM) 1107 1107 # Make sure there's a CD in there by checking cd-discid's return code … … 1111 1111 fi 1112 1112 # In OSX, remount the disc again 1113 1113 if [ "$OSFLAVOUR" = "OSX" ]; then 1114 disk tool -m${CDROM#/dev/}1114 diskutil mount ${CDROM#/dev/} 1115 1115 fi 1116 1116 WEHAVEACD=y 1117 1117 else … … 1921 1921 cdda2wav) 1922 1922 if [ "$OSFLAVOUR" = "OSX" ] ; then 1923 1923 # Hei, we have to unmount the device before running anything like cdda2wav in OSX 1924 disk tool -u${CDROM#/dev/} 01924 diskutil unmount ${CDROM#/dev/} 0 1925 1925 # Also, in OSX the cdrom device for cdda2wav changes... 1926 1926 CDDA2WAVCDROM="IODVDServices" 1927 1927 elif [ "$OSFLAVOUR" = "FBSD" ] ; then … … 2172 2172 elif [ X$(uname) = "XDarwin" ] ; then 2173 2173 HTTPGET=curl 2174 2174 OSFLAVOUR=OSX 2175 # We should have disk tool in OSX, but let's be sure...2176 NEEDDISK TOOL=y2175 # We should have diskutil in OSX, but let's be sure... 2176 NEEDDISKUTIL=y 2177 2177 CDROMREADERSYNTAX=cddafs 2178 2178 elif [ X$(uname) = "XOpenBSD" ] ; then 2179 2179 HTTPGET=wget … … 2676 2676 ${NEEDHTTPGET+$HTTPGET} ${NEEDDISTMP3+$DISTMP3} \ 2677 2677 ${NEEDCOMMENTER+$VORBISCOMMENT} ${NEEDMETAFLAC+$METAFLAC} \ 2678 2678 ${NEEDNORMALIZER+$NORMALIZER} ${NEEDEJECT+$EJECT} \ 2679 ${NEEDDISKTOOL+disk tool} ${NEEDCDSPEED+$CDSPEED} \2679 ${NEEDDISKTOOL+diskutil} ${NEEDCDSPEED+$CDSPEED} \ 2680 2680 ${NEEDVORBISGAIN+$VORBISGAIN} ${NEEDCUEREADER+$CUEREADER} 2681 2681 do 2682 2682 # Cut off the command-line options we just added in … … 2844 2844 cd="$(echo $CDROM | sed -e 's=.*/==;s=[a-h]$==;')" 2845 2845 $eject $EJECTOPTS $cd 2846 2846 elif [ X"$(uname)" = X"Darwin" ] ; then 2847 disk tool -e${CDROM#/dev/} 02847 diskutil eject ${CDROM#/dev/} 0 2848 2848 else 2849 2849 $EJECT $EJECTOPTS $CDROM 2850 2850 fi