comparison cd-backup @ 3:d33008839340

cd backup now works!
author Robert McIntyre <rlm@mit.edu>
date Wed, 19 Oct 2011 01:22:14 -0700
parents 1e962e354810
children 5161d06652f9
comparison
equal deleted inserted replaced
2:1e962e354810 3:d33008839340
1 TARGET="/home/r/proj/scratch/cd.iso" 1 #!/bin/sh
2 2
3 mkisofs -iso-level 4 -o $TARGET "$@" 3 TARGET="/home/r/proj/scratch/image.iso"
4
5 START=`cdrecord -msinfo`
6
7 echo "$START"
8
9 GRAFT_POINTS=''
10
11 for var in "$@"
12 do
13 GRAFT_POINTS="$GRAFT_POINTS \"`basename "$var"`\"=\"$var\""
14 done
15
16
17 #echo $GRAFT_POINTS
18
19 if [ "$START" == "0,0" ]; then
20 COMMAND="mkisofs -iso-level 4 -rJT -o $TARGET -graft-points $GRAFT_POINTS"
21 echo $COMMAND
22 eval $COMMAND
23 else
24 COMMAND="mkisofs -iso-level 4 -rJT -M /dev/dvd \
25 -C $START -o $TARGET -graft-points $GRAFT_POINTS"
26 echo $COMMAND
27 eval $COMMAND
28 fi
29
4 30
5 echo "files copied to $TARGET. use 'cd-burn' to burn it." 31 echo "files copied to $TARGET. use 'cd-burn' to burn it."
6 32
33 #cd-burn