Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh Use the date tool
details: https://anonhg.NetBSD.org/src/rev/425f02853ea0
branches: trunk
changeset: 983475:425f02853ea0
user: christos <christos%NetBSD.org@localhost>
date: Wed May 26 20:21:52 2021 +0000
description:
Use the date tool
diffstat:
bin/sh/Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 8e1842664d5f -r 425f02853ea0 bin/sh/Makefile
--- a/bin/sh/Makefile Wed May 26 20:21:25 2021 +0000
+++ b/bin/sh/Makefile Wed May 26 20:21:52 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.115 2018/10/28 18:13:47 kre Exp $
+# $NetBSD: Makefile,v 1.116 2021/05/26 20:21:52 christos Exp $
# @(#)Makefile 8.4 (Berkeley) 5/5/95
.include <bsd.own.mk>
@@ -33,7 +33,7 @@
# Reproducible build parameters ... export into sh for NETBSD_SHELL setting
.if ${MKREPRO_TIMESTAMP:Uno} != "no"
-BUILD_DATE!= date -u -r "${MKREPRO_TIMESTAMP}" "+%Y%m%d%H%M%S"
+BUILD_DATE!= ${TOOL_DATE} -u -r "${MKREPRO_TIMESTAMP}" "+%Y%m%d%H%M%S"
# These are (should be) equivalent, but the 2nd is easier to understand
#CPPFLAGS+= -DBUILD_DATE='"${BUILD_DATE:C/([^0]0?)(00)*$/\1/}Z"'
CPPFLAGS+= -DBUILD_DATE='"${BUILD_DATE:S/00$//:S/00$//:S/00$//}Z"'
Home |
Main Index |
Thread Index |
Old Index