aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2023-05-07 00:00:31 +0000
committerJan Beich <jbeich@FreeBSD.org>2023-05-07 00:24:08 +0000
commite0fbf5a0186dbdb8d128743d5b4e221e90f0f50b (patch)
tree08616af7b809d6f1c97fdefde6626043850e0507
parent321282b88c76a6d8a1940b13317850cb5122aed0 (diff)
downloadports-e0fbf5a0186dbdb8d128743d5b4e221e90f0f50b.tar.gz
ports-e0fbf5a0186dbdb8d128743d5b4e221e90f0f50b.zip
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)
-rw-r--r--games/veloren-weekly/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/veloren-weekly/Makefile b/games/veloren-weekly/Makefile
index 083ac688453e..b664a91c7169 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