clone-audio-cd.sh (442B)
1 #!/bin/sh 2 set -e 3 4 help() { 5 echo "$0" 6 echo "uses cdio to copy an audio cd through intermediate wav files" 7 } 8 9 if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then 10 help 11 exit 0 12 fi 13 cd "$(mktemp -d)" 14 cdio cdrip 15 cdio eject 16 17 while :; do 18 printf "please insert a blank CD-R(W) and press enter to continue (ctrl-c aborts)... " 19 read -r yn 20 case "$yn" in 21 *) break;; 22 esac 23 done 24 25 doas cdio tao -a ./track*.wav 26 cdio eject 27 rm ./track*.wav 28 cd -