dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit d8fa2c8e9fb9f1a0747aa1fadd1b4343fd02802b
parent a593f0e157cd8fa815ecd6966218c8e1aba0b976
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sat, 19 Oct 2019 20:05:18 +0200

Add script for cloning audio cd with cdio

Diffstat:
A.local/bin/clone-audio-cd.sh | 28++++++++++++++++++++++++++++
1 file changed, 28 insertions(+), 0 deletions(-)

diff --git a/.local/bin/clone-audio-cd.sh b/.local/bin/clone-audio-cd.sh @@ -0,0 +1,28 @@ +#!/bin/sh +set -e + +help() { + echo "$0" + echo "uses cdio to copy an audio cd through intermediate wav files" +} + +if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then + help + exit 0 +fi +cd "$(mktemp -d)" +cdio cdrip +cdio eject + +while :; do + printf "please insert a blank CD-R(W) and press enter to continue (ctrl-c aborts)... " + read -r yn + case "$yn" in + *) break;; + esac +done + +doas cdio tao -a ./track*.wav +cdio eject +rm ./track*.wav +cd -