aboutsummaryrefslogtreecommitdiff
path: root/cdrecord
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-09-18 16:37:23 -0300
committerSilvio Rhatto <user@example.org>2014-09-18 16:37:23 -0300
commit9cf767abb45d641b832ed0960d53d7bdd4055031 (patch)
tree568f8dd540fa9d84bb07ddd1ca1293afde8d4f23 /cdrecord
downloadutils-cdrecord-9cf767abb45d641b832ed0960d53d7bdd4055031.tar.gz
utils-cdrecord-9cf767abb45d641b832ed0960d53d7bdd4055031.tar.bz2
Initial import
Diffstat (limited to 'cdrecord')
-rwxr-xr-xcdrecord23
1 files changed, 23 insertions, 0 deletions
diff --git a/cdrecord b/cdrecord
new file mode 100755
index 0000000..50cd977
--- /dev/null
+++ b/cdrecord
@@ -0,0 +1,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