From e0fbf5a0186dbdb8d128743d5b4e221e90f0f50b Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sun, 7 May 2023 00:00:31 +0000 Subject: [PATCH] games/veloren-weekly: simplify 6054513a40b1 - Other date(1) consumers in ports/ use -u POSIX flag - "date -u" uses UTC0 aka UTC+0 i.e., UTC with explicit offset - Reduces line length by 6 characters (cherry picked from commit 6d78299a54d87c2b959c760c1b4ac0a3022c9aa4) --- 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 083ac688453e3..b664a91c7169a 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/=.*/= \"$$(TZ=UTC date -r $$(${AWK} '/TIMESTAMP/ { print $$3 }' \ + -e "/GIT_DATE.*static/s/=.*/= \"$$(date -ur $$(${AWK} '/TIMESTAMP/ { print $$3 }' \ ${DISTINFO_FILE}) +'%Y-%m-%d-%H:%M')\";/" \ ${WRKSRC}/common/src/util/mod.rs # Respect PREFIX != /usr/local for system assets