git: 6054513a40b1 - main - games/veloren-weekly: make GIT_DATE consistent in different timezones
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 06 May 2023 23:48:36 UTC
The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=6054513a40b13b8baaeed468d77f83688a99a432 commit 6054513a40b13b8baaeed468d77f83688a99a432 Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2023-05-06 23:31:49 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2023-05-06 23:48:08 +0000 games/veloren-weekly: make GIT_DATE consistent in different timezones GIT_DATE is advertised by remote servers, mainly for diagnostics. https://gitlab.com/veloren/veloren/-/commit/5b716515bb39 --- games/veloren-weekly/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/veloren-weekly/Makefile b/games/veloren-weekly/Makefile index b02897e7f390..083ac688453e 100644 --- a/games/veloren-weekly/Makefile +++ b/games/veloren-weekly/Makefile @@ -53,7 +53,7 @@ post-patch: ${WRKSRC}/common/build.rs # Extract (snapshot) version from the port instead of empty file @${REINPLACE_CMD} -e '/GIT_HASH/s/=.*/= "${GL_COMMIT:C/(.{8}).*/\1/}";/' \ - -e "/GIT_DATE.*static/s/=.*/= \"$$(date -r $$(${AWK} '/TIMESTAMP/ { print $$3 }' \ + -e "/GIT_DATE.*static/s/=.*/= \"$$(TZ=UTC date -r $$(${AWK} '/TIMESTAMP/ { print $$3 }' \ ${DISTINFO_FILE}) +'%Y-%m-%d-%H:%M')\";/" \ ${WRKSRC}/common/src/util/mod.rs # Respect PREFIX != /usr/local for system assets