rlm@3: #!/bin/sh rlm@2: rlm@3: TARGET="/home/r/proj/scratch/image.iso" rlm@3: rlm@3: START=`cdrecord -msinfo` rlm@3: rlm@3: echo "$START" rlm@3: rlm@3: GRAFT_POINTS='' rlm@3: rlm@3: for var in "$@" rlm@3: do rlm@3: GRAFT_POINTS="$GRAFT_POINTS \"`basename "$var"`\"=\"$var\"" rlm@3: done rlm@3: rlm@3: rlm@3: #echo $GRAFT_POINTS rlm@3: rlm@3: if [ "$START" == "0,0" ]; then rlm@3: COMMAND="mkisofs -iso-level 4 -rJT -o $TARGET -graft-points $GRAFT_POINTS" rlm@3: echo $COMMAND rlm@3: eval $COMMAND rlm@3: else rlm@3: COMMAND="mkisofs -iso-level 4 -rJT -M /dev/dvd \ rlm@3: -C $START -o $TARGET -graft-points $GRAFT_POINTS" rlm@3: echo $COMMAND rlm@3: eval $COMMAND rlm@3: fi rlm@3: rlm@2: rlm@2: echo "files copied to $TARGET. use 'cd-burn' to burn it." rlm@2: rlm@3: #cd-burn