diff options
-rw-r--r-- | web-ui/app/templates/page/version.hbs | 3 | ||||
-rwxr-xr-x | web-ui/config/add_git_version.sh | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/web-ui/app/templates/page/version.hbs b/web-ui/app/templates/page/version.hbs index 40804ff3..181d2151 100644 --- a/web-ui/app/templates/page/version.hbs +++ b/web-ui/app/templates/page/version.hbs @@ -1 +1,2 @@ -version: UNKNOWN_VERSION
\ No newline at end of file +version: UNKNOWN_VERSION <br/> +COMMIT_DATE diff --git a/web-ui/config/add_git_version.sh b/web-ui/config/add_git_version.sh index 2732abed..b9cfba72 100755 --- a/web-ui/config/add_git_version.sh +++ b/web-ui/config/add_git_version.sh @@ -3,8 +3,10 @@ TEMPLATE_FILE="app/js/generated/hbs/templates.js" COMMITISH=$(git rev-parse --short HEAD) +COMMITDATE=$(git show -s --format=%cr) perl -pi -e "s/UNKNOWN_VERSION/$COMMITISH/" $TEMPLATE_FILE +perl -pi -e "s/COMMIT_DATE/$COMMITDATE/" $TEMPLATE_FILE if [ ! -f "$TEMPLATE_FILE" ] ; then echo "file $TEMPLATE_FILE not found" 1>&2 |