mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-16 15:11:52 +00:00
Create osreldate.h from sys/conf/newvers.sh if we an find it. This
should take a completely ridiculous reboot out of the "make release" process...
This commit is contained in:
parent
f06a5580a6
commit
afb8c020f0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7152
@ -1,5 +1,5 @@
|
||||
# From: @(#)Makefile 8.2 (Berkeley) 1/4/94
|
||||
# $Id: Makefile,v 1.20 1994/11/15 13:42:18 ache Exp $
|
||||
# $Id: Makefile,v 1.21 1995/03/18 07:03:51 rgrimes Exp $
|
||||
#
|
||||
# Doing a make install builds /usr/include
|
||||
#
|
||||
@ -46,10 +46,18 @@ beforeinstall: ${SHARED}
|
||||
install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
|
||||
${DESTDIR}/usr/include/$$i; \
|
||||
done
|
||||
@${ECHO} creating osreldate.h
|
||||
.if exists (${.CURDIR}/../sys/conf/newvers.sh)
|
||||
@${ECHO} creating osreldate.h from newvers.sh
|
||||
@echo \#'undef __FreeBSD_version' > ${OSREL}.new
|
||||
JUST_TELL_ME=please ; \
|
||||
. ${.CURDIR}/../sys/conf/newvers.sh ; \
|
||||
echo \#'define __FreeBSD_version' $$RELDATE >> ${OSREL}.new
|
||||
.else
|
||||
@${ECHO} creating osreldate.h from sysctl info
|
||||
@echo \#'undef __FreeBSD_version' > ${OSREL}.new
|
||||
@echo \#'define __FreeBSD_version '`sysctl -n kern.osreldate` \
|
||||
>> ${OSREL}.new
|
||||
.endif
|
||||
@if cmp -s ${OSREL} ${OSREL}.new ; then \
|
||||
rm -f ${OSREL}.new ; else \
|
||||
mv -f ${OSREL}.new ${OSREL} ; fi
|
||||
|
Loading…
Reference in New Issue
Block a user