From 153c54746647ca17605b768015346dbc1acaef8a Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Sat, 2 Jan 2021 18:40:58 -0500 Subject: [PATCH] Add build date in info Fixes #421 --- CHANGELOG.md | 1 + src/stage2/50_zimfw_info.zsh.erb | 2 +- zimfw.zsh | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7782664..4224243 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Prompt before uninstalling modules, unless `-q` is set. +- Show build date in info. ### Fixed - Show error when no parameter is provided to `-c|--cmd`. diff --git a/src/stage2/50_zimfw_info.zsh.erb b/src/stage2/50_zimfw_info.zsh.erb index f50bf19..07d710d 100644 --- a/src/stage2/50_zimfw_info.zsh.erb +++ b/src/stage2/50_zimfw_info.zsh.erb @@ -1,5 +1,5 @@ _zimfw_info() { - print -R 'zimfw version: '${_zversion}' (previous commit is <%= `git rev-parse --short HEAD | tr -d '\r\n'` %>)' + print -R 'zimfw version: '${_zversion}' (built at <%= Time.now.utc %>, previous commit is <%= `git rev-parse --short HEAD | tr -d '\r\n'` %>)' print -R 'ZIM_HOME: '${ZIM_HOME} print -R 'Zsh version: '${ZSH_VERSION} print -R 'System info: '$(command uname -a) diff --git a/zimfw.zsh b/zimfw.zsh index 2375637..9370dd7 100644 --- a/zimfw.zsh +++ b/zimfw.zsh @@ -319,7 +319,7 @@ _zimfw_compile() { } _zimfw_info() { - print -R 'zimfw version: '${_zversion}' (previous commit is c6f0720)' + print -R 'zimfw version: '${_zversion}' (built at 2021-01-02 23:37:59 UTC, previous commit is dfbe535)' print -R 'ZIM_HOME: '${ZIM_HOME} print -R 'Zsh version: '${ZSH_VERSION} print -R 'System info: '$(command uname -a)