Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/etc Pull up 1.116 (this time, for sure!)
details: https://anonhg.NetBSD.org/src/rev/c65616331da6
branches: netbsd-1-4
changeset: 468165:c65616331da6
user: fair <fair%NetBSD.org@localhost>
date: Sat Apr 10 04:43:50 1999 +0000
description:
Pull up 1.116 (this time, for sure!)
diffstat:
etc/Makefile | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diffs (42 lines):
diff -r 506af1fe4430 -r c65616331da6 etc/Makefile
--- a/etc/Makefile Sat Apr 10 02:15:47 1999 +0000
+++ b/etc/Makefile Sat Apr 10 04:43:50 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.112.2.3 1999/04/08 08:28:08 fair Exp $
+# $NetBSD: Makefile,v 1.112.2.4 1999/04/10 04:43:50 fair Exp $
# from: @(#)Makefile 8.7 (Berkeley) 5/25/95
# Environment variables without default values:
@@ -265,7 +265,12 @@
# system can create more than one kernel from a single configuration
# we figure out how many there are, what they're named, and move them
# to binary/kernel/${KERNEL}.${CONFIGFILE}.gz - most often KERNEL will
-# simply be "netbsd".
+# simply be "netbsd". If we don't find the "config" line, assume the
+# kernel will be "netbsd" (some config files are simple additions on
+# GENERIC, and just include it).
+#
+GETKERNELAWK= awk '/^config/ {print $$2; found=1} \
+ END{ if (found == 0) print "netbsd"; }'
#
snap_kern:
cd ${KERNCONFDIR} && config \
@@ -275,8 +280,7 @@
.endif
cd ${KERNOBJDIR}/GENERIC && ${MAKE} depend && ${MAKE} ${_J}
cd ${KERNOBJDIR}/GENERIC && \
- tar cf - `awk '$$1=="config" {print $$2}' \
- ${KERNCONFDIR}/GENERIC` |\
+ tar cf - `${GETKERNELAWK} ${KERNCONFDIR}/GENERIC` |\
gzip -c -9 > ${RELEASEDIR}/binary/sets/kern.tgz
.for configfile in ${EXTRA_KERNELS}
cd ${KERNCONFDIR} && config \
@@ -286,7 +290,7 @@
.endif
cd ${KERNOBJDIR}/${configfile} && ${MAKE} depend && ${MAKE} ${_J}
cd ${KERNOBJDIR}/${configfile} && \
- for kernel in `awk '$$1=="config" {print $$2}' \
+ for kernel in `${GETKERNELAWK} \
${KERNCONFDIR}/${configfile}` ; { \
gzip -c -9 < $${kernel} > \
${RELEASEDIR}/binary/kernel/$${kernel}.${configfile}.gz ; }
Home |
Main Index |
Thread Index |
Old Index