Date: Fri, 15 Jun 2007 16:13:11 GMT From: Gabor Kovesdan <gabor@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 121701 for review Message-ID: <200706151613.l5FGDBKB083683@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=121701 Change 121701 by gabor@gabor_server on 2007/06/15 16:12:52 Change OSVERSION handling here, as well. This change was forgotten when I was working on the DESTDIR support last summer. Reported by: kris Affected files ... .. //depot/projects/soc2006/gabor_destdir/Mk/bsd.port.subdir.mk#9 edit Differences ... ==== //depot/projects/soc2006/gabor_destdir/Mk/bsd.port.subdir.mk#9 (text+ko) ==== @@ -58,10 +58,12 @@ OSREL!= /usr/bin/uname -r | sed -e 's/[-(].*//' .endif .if !defined(OSVERSION) -.if exists(/sbin/sysctl) -OSVERSION!= /sbin/sysctl -n kern.osreldate +.if exists(/usr/include/sys/param.h) +OSVERSION!= ${AWK} '/^\#define __FreeBSD_version/ {print $$3}' < /usr/include/sys/param.h +.elif exists(/usr/src/sys/sys/param.h) +OSVERSION!= ${AWK} '/^\#define __FreeBSD_version/ {print $$3}' < /usr/src/sys/sys/param.h .else -OSVERSION!= /usr/sbin/sysctl -n kern.osreldate +OSVERSION!= ${SYSCTL} -n kern.osreldate .endif .endif .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706151613.l5FGDBKB083683>