5 echo "This script needs two parameters, (1) an ISO file to create, and"
6 echo "(2) a folder to use as the dvd/cd data for the ISO. For example,"
7 echo " $(basename $0) ~/grunge.iso ~/dvdimages/grungebandpro"
8 echo "where grungebandpro is presumably a directory with a dvd image."
12 folder_name="$1"; shift
14 if [ -z "$iso_name" -o -z "$folder_name" ]; then
19 if [ -f "$iso_name" ]; then
20 echo -e "The ISO file must not already exist.\n"
25 if [ ! -d "$folder_name" ]; then
26 echo -e "The provided folder name must exist.\n"
31 mkisofs -dvd-video -o "$iso_name" "$folder_name"