#!/bin/bash

#Create ISO image from directory
##########################################################################
#                        "geiso 0.1" Nautilus Script                     #
##########################################################################
#                                                                        #
# Created by Victor Kireev                                               #
# Email: skvitek@gmail.com                                               #
#                                                                        #
##########################################################################
title="GeISO"
Options="Your custom options(if none, then -R -J are added by default)"
Dir="Input directory"
Out="Output file"

options=`gdialog --title "$title" --inputbox "$Options (optional)" 500 100 2>&1`
dir=`zenity  --title="$Dir" --file-selection --directory`
out=`zenity  --title="$Out" --file-selection --save`


if [ "$options" = "" ]
then
    xterm -e genisoimage -o $out -R -J $dir
  else 
    xterm -e genisoimage -o $out $options $dir
fi

