#!/bin/bash #set -vx ####################################################################### # # Name: cdrdaobatch.sh # # Call: ./cdrdaobatch.sh ./dir1 ./dir2 ./dir3 ... # or ./cdrdaobatch.sh * (searches for all directories) # # Function: This script is looking into all directories in $* for image # files for SVCDs. These Files are burned on CD # # Author: Manfred Schmidt-Voigt, Hamburg 2002 # # History: 13.09.2002 created # 08.06.2003 adepted to the svcd.sh from 08.06.2003 and moved # to debian # ####################################################################### PATH=.:$PATH:/usr/local/src/cdrdao while [ _$1 != '_' ] do OPWD=`pwd` NAME=$1 if [ -d $1 ] && [ `ls $1/*.cue 2>/dev/null|wc -l` != '0' ]; then # if DIRNAME is a directory and contains *.cue files cd ${NAME} COUNT=0 for CUEFILE in `ls *.cue` do let COUNT=${COUNT}+1 # Burn CD cdrdao write --device 1,0,0 --driver generic-mmc-raw --overburn --speed 12 --eject ${CUEFILE} # This bplay is a small commandline utility to play # a wave file for signalling the end of the burning process /usr/bin/bplay /usr/local/src/cdrdao/RingIn.wav > /dev/null 2>&1 & echo "Dies war ${NAME}/${CUEFILE} . Return to continue" read x done fi # next parameter -> $1 shift cd ${OPWD} done