From ec51d61f1aea5738824dc114d8c513b042de62ae Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Tue, 25 Mar 2008 15:47:22 +0000 Subject: [PATCH] Add code that should catch the most common case when date/time is set incorrectly. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index ae568db8ae50..8df04244c8df 100644 --- a/Makefile +++ b/Makefile @@ -172,6 +172,10 @@ ${TGTS}: .MAIN: all STARTTIME!= LC_ALL=C date +CHECK_TIME!= find ${.CURDIR}/sys/sys/param.h -mtime -0 +.if !empty(CHECK_TIME) +.error check your date/time: ${STARTTIME} +.endif .if defined(HISTORICAL_MAKE_WORLD) || defined(DESTDIR) #