Skip to content

Commit

Permalink
games/veloren-weekly: make GIT_DATE consistent in different timezones
Browse files Browse the repository at this point in the history
GIT_DATE is advertised by remote servers, mainly for diagnostics.
https://gitlab.com/veloren/veloren/-/commit/5b716515bb39

(cherry picked from commit 6054513)
  • Loading branch information
jbeich committed May 6, 2023
1 parent 2833268 commit 321282b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion games/veloren-weekly/Makefile
Expand Up @@ -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
Expand Down

0 comments on commit 321282b

Please sign in to comment.