pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/mklivecd/files Do the same for MULTIPLE_KERNE...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d3b6872cc73d
branches:  trunk
changeset: 527753:d3b6872cc73d
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Thu Apr 12 22:31:16 2007 +0000

description:
Do the same for MULTIPLE_KERNELS, check if the kernel is found in
~/.mklivecd before showing informative messages.

diffstat:

 sysutils/mklivecd/files/mklivecd.sh |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (44 lines):

diff -r c1e7136f2a52 -r d3b6872cc73d sysutils/mklivecd/files/mklivecd.sh
--- a/sysutils/mklivecd/files/mklivecd.sh       Thu Apr 12 22:26:19 2007 +0000
+++ b/sysutils/mklivecd/files/mklivecd.sh       Thu Apr 12 22:31:16 2007 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: mklivecd.sh,v 1.40 2007/04/12 22:26:19 xtraeme Exp $
+# $NetBSD: mklivecd.sh,v 1.41 2007/04/12 22:31:16 xtraeme Exp $
 #
 # Copyright (c) 2004-2007 Juan Romero Pardines.
 # All rights reserved.
@@ -400,6 +400,11 @@
         eval bootkern=\$KERNEL_CONFIG_${K}
         eval kernname=\$KERNEL_NAME_${K}
 
+        if [ ! -d $WORKDIR/$kernname -a ! -f $bootkern ]; then
+            showmsg "couldn't find $bootkern, exiting."
+            bye 1
+        fi
+
         cd $WORKDIR
         showmsg "Building kernel: $bootkern.."
 
@@ -410,11 +415,6 @@
             mkdir $WORKDIR/$kernname
        fi
 
-       if [ ! -d $WORKDIR/$kernname -a ! -f $bootkern ]; then
-            showmsg "couldn't find $bootkern, exiting."
-           bye 1
-       fi
-
        config -s $SOURCEDIR/sys -b $WORKDIR/$kernname $bootkern
        cd $kernname
        make depend && make
@@ -672,7 +672,7 @@
        cat > $ISODIR/etc/rc.d/root <<_EOF_
 #!/bin/sh
 #
-# \$NetBSD: mklivecd.sh,v 1.40 2007/04/12 22:26:19 xtraeme Exp $
+# \$NetBSD: mklivecd.sh,v 1.41 2007/04/12 22:31:16 xtraeme Exp $
 # 
 
 # PROVIDE: root



Home | Main Index | Thread Index | Old Index