blob: 50cd97784067d1d3894df35401bfa9b8474e84be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
#
# Record an audio cd based on wav files in a folder
#
if [ -z "$1" ] && [ -d "$1" ]; then
CWD="`pwd`"
cd $1
fi
echo CD_DA > toc
for file in *.wav; do
echo >> toc
echo TRACK AUDIO >> toc
echo FILE \"$file\" 0 >> toc
done
cdrdao write --speed 8x --device /dev/cdrom1 toc
if [ ! -z "$CWD" ]; then
cd $CWD
fi
|