From c1e639b4475547214b506a76bd1aa101ec88aff5 Mon Sep 17 00:00:00 2001 From: Stew Benedict Date: Mon, 21 May 2001 12:35:08 +0000 Subject: enable creation of PPC boot CD on x86 platform --- tools/ppc/mkINSTALLCD | 18 +++++++++++++++++- tools/ppc/mkhybrid-1.12b5.4-x86 | Bin 0 -> 194471 bytes 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 tools/ppc/mkhybrid-1.12b5.4-x86 (limited to 'tools/ppc') diff --git a/tools/ppc/mkINSTALLCD b/tools/ppc/mkINSTALLCD index e7e2d9052..e05ec8b54 100755 --- a/tools/ppc/mkINSTALLCD +++ b/tools/ppc/mkINSTALLCD @@ -24,6 +24,22 @@ if [ ! -d $1 ] ; then exit 1 fi +# select the appropriate mkhybrid binary depending on if +# we are on x86 or ppc + +ARCH=`uname -m | sed -e 's/i.86/i386/' -e 's/sparc.*/sparc/'` + +if [ "$ARCH" == "ppc" ]; then + MKHYBRID=mkhybrid-1.12b5.4 +else + if [ "$ARCH" == "i386" ]; then + MKHYBRID=mkhybrid-1.12b5.4-x86 + else + echo "Sorry, no mkhybrid binary for $ARCH..." + exit + fi +fi + #Change these when you build the CD.. ApplicationID="Linux-Mandrake" PublisherID="MandrakeSoft" @@ -33,7 +49,7 @@ volid=ppc hfsVolid=Linux-Mandrake curPwd=`pwd` -$curPwd/mkhybrid-1.12b5.4 -part -hfs -r -l -J \ +$curPwd/$MKHYBRID -part -hfs -r -l -J \ -A $ApplicationID \ -P $PublisherID \ -p $PreparerID \ diff --git a/tools/ppc/mkhybrid-1.12b5.4-x86 b/tools/ppc/mkhybrid-1.12b5.4-x86 new file mode 100755 index 000000000..fd5b21709 Binary files /dev/null and b/tools/ppc/mkhybrid-1.12b5.4-x86 differ -- cgit v1.2.1