#!/bin/sh

TARGET="/home/r/tmp/image.iso"

#START=`cdrecord -msinfo`

#echo "$START"

GRAFT_POINTS=''

for var in "$@"
do 
    GRAFT_POINTS="$GRAFT_POINTS \"`basename "$var"`\"=\"$var\""
done


#echo $GRAFT_POINTS

#if [ "$START" == "0,0" ]; then
   COMMAND="mkisofs -iso-level 4 -rJT -o $TARGET -graft-points $GRAFT_POINTS"
#   echo $COMMAND
#   eval $COMMAND
#else 
#   COMMAND="mkisofs -iso-level 4 -rJT -M /dev/cdrom \
#               -C $START -o $TARGET -graft-points $GRAFT_POINTS"
   echo $COMMAND
   eval $COMMAND
#fi


echo "files copied to $TARGET. use 'burn-tmp-iso-image' to burn it."

#cd-burn
