Avoid problems with read-only osreldate.h

This commit is contained in:
Simon J. Gerraty 2013-02-16 01:36:14 +00:00
parent ddafe92543
commit b068afb4a2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/bmake/; revision=246870

View file

@ -99,6 +99,7 @@ osreldate.h: ${.CURDIR}/../sys/conf/newvers.sh ${.CURDIR}/../sys/sys/param.h \
@MAKE=${MAKE}; \
PARAMFILE=${.CURDIR}/../sys/sys/param.h; \
. ${.CURDIR}/../sys/conf/newvers.sh; \
rm -f osreldate.h; \
echo "$$COPYRIGHT" > osreldate.h; \
echo "#ifdef _KERNEL" >> osreldate.h; \
echo "#error \"<osreldate.h> cannot be used in the kernel, use <sys/param.h>\"" >> osreldate.h; \