Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Enhance "kernel=" to print pathnames of newly built kernels ...
details: https://anonhg.NetBSD.org/src/rev/bc7aa8e59f2b
branches: trunk
changeset: 543067:bc7aa8e59f2b
user: lukem <lukem%NetBSD.org@localhost>
date: Sun Feb 16 04:35:03 2003 +0000
description:
Enhance "kernel=" to print pathnames of newly built kernels for cut & paste.
(Previously we just printed the build directory.)
diffstat:
build.sh | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r e2a331881cb9 -r bc7aa8e59f2b build.sh
--- a/build.sh Sun Feb 16 01:22:44 2003 +0000
+++ b/build.sh Sun Feb 16 04:35:03 2003 +0000
@@ -1,5 +1,5 @@
#! /usr/bin/env sh
-# $NetBSD: build.sh,v 1.90 2003/02/06 22:19:06 enami Exp $
+# $NetBSD: build.sh,v 1.91 2003/02/16 04:35:03 lukem Exp $
#
# Copyright (c) 2001-2003 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -689,7 +689,7 @@
eval cat <<EOF $makewrapout
#! /bin/sh
# Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from: \$NetBSD: build.sh,v 1.90 2003/02/06 22:19:06 enami Exp $
+# Generated from: \$NetBSD: build.sh,v 1.91 2003/02/16 04:35:03 lukem Exp $
#
EOF
@@ -778,8 +778,16 @@
bomb "make depend failed in ${kernbuilddir}"
$runcmd "$makewrapper" $parallel all ||
bomb "make all failed in ${kernbuilddir}"
- $runcmd echo "===> New kernel should be in:"
- $runcmd echo " ${kernbuilddir}"
+
+ if [ "$runcmd" != "echo" ]; then
+ echo "===> New kernels built:"
+ kernlist=$(awk '$1 == "config" { print $2 }' ${kernconfpath})
+ for kern in ${kernlist:-netbsd}; do
+ [ -f "${kernbuilddir}/${kern}" ] && \
+ echo " ${kernbuilddir}/${kern}"
+ done
+ echo "."
+ fi
}
installworld()
Home |
Main Index |
Thread Index |
Old Index