5 echo "This script needs two parameters, (1) an ISO file to create, and"
6 echo "(2) a folder to use as the blu-ray data for the ISO. For example,"
7 echo " $(basename $0) ~/grunge.iso ~/dvdimages/grungebandpro"
11 folder_name="$1"; shift
13 if [ -z "$iso_name" -o -z "$folder_name" ]; then
18 if [ -f "$iso_name" ]; then
19 echo -e "The ISO file must not already exist.\n"
24 if [ ! -d "$folder_name" ]; then
25 echo -e "The provided folder name must exist.\n"
30 genisoimage -r -J -joliet-long -o "$iso_name" "$folder_name"