view crvft/cd-backup.sh @ 26:14410daf5190 tip

get makefile.
author Robert McIntyre <rlm@mit.edu>
date Thu, 29 Jan 2015 20:51:17 -0800
parents e2bef5c2dc28
children
line wrap: on
line source
1 #!/bin/sh
3 TARGET="/home/r/tmp/image.iso"
5 #START=`cdrecord -msinfo`
7 #echo "$START"
9 GRAFT_POINTS=''
11 for var in "$@"
12 do
13 GRAFT_POINTS="$GRAFT_POINTS \"`basename "$var"`\"=\"$var\""
14 done
17 #echo $GRAFT_POINTS
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/cdrom \
25 # -C $START -o $TARGET -graft-points $GRAFT_POINTS"
26 echo $COMMAND
27 # eval $COMMAND
28 #fi
31 echo "files copied to $TARGET. use 'burn-tmp-iso-image' to burn it."
33 #cd-burn