summaryrefslogtreecommitdiff
path: root/web-ui/config
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/config')
-rwxr-xr-xweb-ui/config/add_git_version.sh2
1 files changed, 2 insertions, 0 deletions
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