From owner-freebsd-current Thu May 21 21:50:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA00723 for freebsd-current-outgoing; Thu, 21 May 1998 21:50:15 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from freebie.lemis.com (freebie.lemis.com [139.130.136.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA00718 for ; Thu, 21 May 1998 21:50:10 -0700 (PDT) (envelope-from grog@lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id OAA19330; Fri, 22 May 1998 14:20:09 +0930 (CST) (envelope-from grog) Message-ID: <19980522142009.E27201@freebie.lemis.com> Date: Fri, 22 May 1998 14:20:09 +0930 From: Greg Lehey To: FreeBSD current users Subject: src/sys/conf/newvers.sh 1.37 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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