3 # makes a playable dvd movie disc image from a folder.
4 # the folder has to contain a ripped and decrypted DVD.
6 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
10 echo "This script needs two parameters, (1) an ISO file to create, and"
11 echo "(2) a folder to use as the dvd/cd data for the ISO. For example,"
12 echo " $(basename $0) ~/grunge.iso ~/dvdimages/grungebandpro"
13 echo "where grungebandpro is presumably a directory with a dvd image."
17 folder_name="$1"; shift
19 if [ -z "$iso_name" -o -z "$folder_name" ]; then
24 if [ -f "$iso_name" ]; then
25 echo -e "The ISO file must not already exist.\n"
30 if [ ! -d "$folder_name" ]; then
31 echo -e "The provided folder name must exist.\n"
36 mkisofs -dvd-video -o "$iso_name" "$folder_name"
38 exit_on_error making ISO filesystem from folder ${folder_name}