- Fix variable assignment to be portable.
- "Line up" continuations. Submitted by: bde
This commit is contained in:
parent
40ba85224c
commit
47517466d5
@ -76,13 +76,13 @@ osreldate.h: ${.CURDIR}/../sys/conf/newvers.sh \
|
||||
${.CURDIR}/../sys/sys/param.h \
|
||||
${.CURDIR}/Makefile
|
||||
@${ECHO} creating osreldate.h from newvers.sh
|
||||
@setvar PARAMFILE ${.CURDIR}/../sys/sys/param.h; \
|
||||
MAKE=${MAKE} . ${.CURDIR}/../sys/conf/newvers.sh; \
|
||||
echo "$$COPYRIGHT" > osreldate.h; \
|
||||
echo "#ifdef _KERNEL" >> osreldate.h; \
|
||||
@PARAMFILE=${.CURDIR}/../sys/sys/param.h; \
|
||||
MAKE=${MAKE} . ${.CURDIR}/../sys/conf/newvers.sh; \
|
||||
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; \
|
||||
echo "#else" >> osreldate.h; \
|
||||
echo \#'undef __FreeBSD_version' >> osreldate.h; \
|
||||
echo "#else" >> osreldate.h; \
|
||||
echo \#'undef __FreeBSD_version' >> osreldate.h; \
|
||||
echo \#'define __FreeBSD_version' $$RELDATE >> osreldate.h; \
|
||||
echo "#endif" >> osreldate.h
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user