diff options
author | Jean-Sébastien Pédron <[email protected]> | 2015-10-12 14:48:50 +0200 |
---|---|---|
committer | Jean-Sébastien Pédron <[email protected]> | 2015-10-12 14:59:48 +0200 |
commit | f03a2268c0fec4dde36a77fa59180d409c864a93 (patch) | |
tree | 22870320ffc681e83a81fb739bc61a0094391513 /Makefile | |
parent | b58142842e1a888f80042b9decebcede434bec90 (diff) | |
download | erlang.mk-f03a2268c0fec4dde36a77fa59180d409c864a93.tar.gz erlang.mk-f03a2268c0fec4dde36a77fa59180d409c864a93.tar.bz2 erlang.mk-f03a2268c0fec4dde36a77fa59180d409c864a93.zip |
Use '+%F %T%z' to format the timestamp
Option `--rfc-3339` is specific to GNU Coreutils' date(1). This change
fixes the use of `make summary` on other platforms such as FreeBSD.
The underscore is integrated to the tiem format at the same time; no
need for an additional $(subst).
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -48,7 +48,7 @@ summary: @touch test/logs/latest.log test/packages/errors.log -@sort test/packages/errors.log | diff test/logs/latest.log - @sort test/packages/errors.log > test/logs/latest.log - @cp test/logs/latest.log "test/logs/$(subst $(empty) $(empty),_,$(shell date --rfc-3339 seconds))" + @cp test/logs/latest.log "test/logs/$(shell date '+%F_%T%z')" search: @$(MAKE) --no-print-directory \ |