Directly use bmake's ':gmtime'

This commit is contained in:
Baptiste Daroussin 2015-03-15 14:41:26 +00:00
parent 42450b4928
commit 5d3fd44bbf

View File

@ -155,8 +155,8 @@ BRANCH!= ${MAKE} -C ${SRCDIR}/release -V BRANCH
SRCRELDATE!= awk '/^\#define[[:space:]]*__FreeBSD_version/ { print $$3 }' \
${SRCDIR}/sys/sys/param.h
.if ${BRANCH:MSTABLE*} || ${BRANCH:MCURRENT*}
TIMENOW!= TZ=UTC date +%Y%m%d%H%M%S
EXTRA_REVISION= .s${TIMENOW}
TIMENOW= %Y%m%d%H%M%S
EXTRA_REVISION= .s${TIMENOW:gmtime}
.endif
.if ${BRANCH:M*-p*}
EXTRA_REVISION= _${BRANCH:C/.*-p([0-9]+$)/\1/}