Module Name: src Committed By: christos Date: Sat Dec 19 23:37:43 UTC 2015
Modified Files: src/etc: Makefile Log Message: Freeze the BUILDER and the BUILD_DATE for repeatable builds To generate a diff of this commit: cvs rdiff -u -r1.424 -r1.425 src/etc/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/etc/Makefile diff -u src/etc/Makefile:1.424 src/etc/Makefile:1.425 --- src/etc/Makefile:1.424 Mon Aug 31 02:08:07 2015 +++ src/etc/Makefile Sat Dec 19 18:37:43 2015 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.424 2015/08/31 06:08:07 uebayasi Exp $ +# $NetBSD: Makefile,v 1.425 2015/12/19 23:37:43 christos Exp $ # from: @(#)Makefile 8.7 (Berkeley) 5/25/95 # Environment variables without default values: @@ -185,6 +185,17 @@ MAKEDEV: ${.CURDIR}/MAKEDEV.awk ${.CURDI > ${.TARGET} .include "${NETBSDSRCDIR}/etc/Makefile.params" +.if ${MKREPRO:Uno} == "no" +BUILDER!= echo $${USER-root}@$$(hostname) +.else +BUILDER= buil...@localhost.netbsd.org +.endif +.if ${MKREPRO_TIMESTAMP:Uno} == "no" +BUILD_DATE!= date -u +.else +BUILD_DATE!= date -u -r "${MKREPRO_TIMESTAMP}" +.endif + CLEANFILES+= etc-release etc-release: .EXEC .MAKE ${_MKTARGET_CREATE} @@ -193,8 +204,8 @@ etc-release: .EXEC .MAKE cat ${NETBSDSRCDIR}/sys/conf/copyright; \ echo ; \ echo "Build information:"; \ - printf "%20s %s\n" "Build date" "$$(date -u)"; \ - printf "%20s %s\n" "Built by" "$${USER-root}@$$(hostname)"; \ + printf "%20s %s\n" "Build date" "${BUILD_DATE}"; \ + printf "%20s %s\n" "Built by" "${BUILDER}"; \ if [ -n "${BUILDID}" ]; then \ printf "%20s %s\n" "Build ID" "${BUILDID}" ; \ fi ; \