Skip to content

Commit

Permalink
games/veloren-weekly: simplify 6054513
Browse files Browse the repository at this point in the history
- 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 6d78299)
  • Loading branch information
jbeich committed May 7, 2023
1 parent 321282b commit e0fbf5a
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/=.*/= \"$$(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
Expand Down

0 comments on commit e0fbf5a

Please sign in to comment.