mirror of
https://git.freebsd.org/ports.git
synced 2025-06-06 05:10:29 -04:00
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
This commit is contained in:
parent
d103565dc0
commit
6054513a40
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue