satimis
16th October 2004, 10:34 AM
Hi folks,
I have prepared following script to create ISO image and burn the same on CD afterwards;
#!/bin/bash
if [ -z "${1:-}" ]; then
( echo "Usage: $0 imagepostfix [pathspec...]" ; echo ) >&2
exit 2;
fi
ISO_File="/path/to/To_burn/Image_${1}.iso"
shift
mkisofs -R -o "$ISO_File" -l -graft-point -hide-rr-moved \
/dir-1/=/path/to/dir-1/ \
/dir-2/=/path/to/dir-2/ \
/dir-3/=/path/to/dir-3/ \
/dir-4/=/path/to/dir-4/ "$@"
shift
cdrecord dev=ATA:1,0,0 -v -eject "$ISO_File"
# ./cdmaker xyz /dir-5/=/path/to/dir-5/ /dir-6/=/path/to/dir-6/ etc.
It works for me seamlessly.
I can create an icon executing the command "./cdmaker ABC" to create ISO image and burn the same on CD, if the name of ISO image fixed and no addition of further directory/directories. But if they are necessary then how to re-editing the script so that mini-windows will be popup for entering "name of ISO image" and "directories including their paths"
Please advise. TIA
B.R.
satimis
I have prepared following script to create ISO image and burn the same on CD afterwards;
#!/bin/bash
if [ -z "${1:-}" ]; then
( echo "Usage: $0 imagepostfix [pathspec...]" ; echo ) >&2
exit 2;
fi
ISO_File="/path/to/To_burn/Image_${1}.iso"
shift
mkisofs -R -o "$ISO_File" -l -graft-point -hide-rr-moved \
/dir-1/=/path/to/dir-1/ \
/dir-2/=/path/to/dir-2/ \
/dir-3/=/path/to/dir-3/ \
/dir-4/=/path/to/dir-4/ "$@"
shift
cdrecord dev=ATA:1,0,0 -v -eject "$ISO_File"
# ./cdmaker xyz /dir-5/=/path/to/dir-5/ /dir-6/=/path/to/dir-6/ etc.
It works for me seamlessly.
I can create an icon executing the command "./cdmaker ABC" to create ISO image and burn the same on CD, if the name of ISO image fixed and no addition of further directory/directories. But if they are necessary then how to re-editing the script so that mini-windows will be popup for entering "name of ISO image" and "directories including their paths"
Please advise. TIA
B.R.
satimis