From b1bf2196d3b9705bf342e844df3bb45380e4a3d3 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Wed, 25 May 2011 02:13:13 +0000 Subject: [PATCH] add an attempted fallback to genisoimage if mkisofs doesn't exist on the system. (debian no longer ships mkisofs) genisoimage is based on an older version of mkisofs and has issues with long filenames. The genisoimage iso-level override makes the image work and allows long filenames but may introduce issues? placed a warning to the user that genisoimage is a fallback git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41735 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- build/scripts/build_haiku_image | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/build/scripts/build_haiku_image b/build/scripts/build_haiku_image index 272c20ad6e..71f05e957d 100755 --- a/build/scripts/build_haiku_image +++ b/build/scripts/build_haiku_image @@ -313,9 +313,20 @@ if [ $isCD ]; then echo "Copying boot image ..." $cp "$cdBootFloppy" "$outputDir" - # build the iso image - echo "Building CD image ..." - mkisofs -uid 0 -gid 0 -b `basename $cdBootFloppy` -R -V "$cdLabel" -o "$cdImagePath" "$tPrefix" + if [ $(which mkisofs) ]; then + # build the iso image using mkisofs + echo "Building CD image (mkisofs)..." + mkisofs -uid 0 -gid 0 -b `basename $cdBootFloppy` -R -V "$cdLabel" -o "$cdImagePath" "$tPrefix" + elif [ $(which genisoimage) ]; then + # build the iso image using genisoimage + echo "Building CD image (genisoimage)..." + echo "WARNING: genisoimage fallback has known problems with long filenames!" + echo " Please install mkisofs before making production releases!" + genisoimage -r -iso-level 4 -b `basename $cdBootFloppy` -V "$cdLabel" -o "$cdImagePath" "$tPrefix" + else + echo "you need mkisofs (preferred) or genisoimage to create a CD image." + exit 1 + fi # cleanup output dir $rmAttrs -rf "$outputDir"