Date: Fri, 22 May 1998 14:20:09 +0930 From: Greg Lehey <grog@lemis.com> To: FreeBSD current users <FreeBSD-current@FreeBSD.ORG> Subject: src/sys/conf/newvers.sh 1.37 Message-ID: <19980522142009.E27201@freebie.lemis.com>
next in thread | raw e-mail | index | archive | help
> revision 1.37
> date: 1998/05/21 19:21:45; author: eivind; state: Exp; lines: +9 -2
> Move __FreeBSD_version from src/sys/conf/newvers.sh to
> src/sys/sys/param.h, to facilitate access from the kernel. This make
> it possible to do outside kernel development and have it actually work
> properly.
This modification appears broken. There's no way to find the path.
The code is:
if [ "X${PARAMFILE}" != "X" ]; then
RELDATE=$(awk '/__FreeBSD_version.*propagated to newvers/ {print $3}' \
${PARAMFILE})
else
RELDATE=$(awk '/__FreeBSD_version.*propagated to newvers/ {print $3}' \
$(dirname $0)/../sys/param.h)
fi
Unfortunately, it's called right at the beginning of a 'make world'
with:
. /T/src/FREEBIE/src/include/../sys/conf/newvers.sh; echo "$COPYRIGHT" > osreldate.h;
awk: cmd. line:2: fatal: cannot open file `/bin/../sys/param.h' for reading (No such file or directory)
*** Error code 2
This can't work because . doesn't set $*.
Greg
--
See complete headers for address and phone numbers
finger grog@lemis.com for PGP public key
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980522142009.E27201>
