?mode=patch&uid=2010032410345815338
Open Patch: 2010032410345815338 (by stf)
+ stf
Votecheck 'core-strong': Missing 1 qualified vote(s) (clifford, fake, teha)
scripts/Create-ISO
Stefan Fiedler:
	scripts/Create-ISO: add support for cdrkit as a replacement for cdr-tools

Stefan Fiedler:
	scripts/Create-ISO: add support for cdrkit as a replacement for cdr-tools

--- scripts/Create-ISO	(Revision 22)
+++ scripts/Create-ISO	(Revision 23)
@@ -1,4 +1,4 @@
-#!/bin/bash
+# #!/bin/bash
 
 #
 # Commands in isofs.txt files:
@@ -70,6 +70,17 @@
 
 spacer="    "
 
+MKISOFS=""
+if [ -x "$( which genisoimage )" ] ; then
+	MKISOFS=genisoimage
+elif [ -x "$( which mkisofs )" ] ; then
+	MKISOFS=mkisofs
+fi
+if [ "$MKISOFS" == "" ] ; then
+	echo "Neither genisoimage nor mkisofs found, aborting..."
+	exit 1
+fi
+
 if [ "$implantisomd5" = 1 -a ! -x src/isomd5sum/implantisomd5 ] ; then
 	echo ; date "+  [%X] Creating ISO-MD5 tools ..."
 	rm -rf src/isomd5sum; mkdir -p src/isomd5sum
@@ -245,8 +256,8 @@
 fi
 
 xxx() {
-	if ! mkisofs "$@" &> $dat ; then
-		echo ; echo "mkisofs $@" ; echo
+	if ! ${MKISOFS} "$@" &> $dat ; then
+		echo ; echo "${MKISOFS} $@" ; echo
 		cat $dat ; rm -f $index $dat; exit 1
 	fi
 }

[Download this patch]