aboutsummaryrefslogtreecommitdiffstats
path: root/set_version.sh
diff options
context:
space:
mode:
Diffstat (limited to 'set_version.sh')
-rwxr-xr-xset_version.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/set_version.sh b/set_version.sh
index dfb7e8e..1169c15 100755
--- a/set_version.sh
+++ b/set_version.sh
@@ -1,2 +1,5 @@
#!/bin/bash
-echo "exports.version=\"$(git describe --long --always)\";" > version.js
+
+echo "exports.branch=\"$(git branch | grep \* | cut -d ' ' -f2)\";" > version.js
+echo "exports.commit=\"$(git describe --long --always)\";" >> version.js
+echo "exports.commit_datetime=\"$(git show -s --format=%ci)\";" >> version.js