Add a generated version.txt containing commit id
Philip Whineray committed
Apr 4, 2016 at 22:15 UTC
2a694530e904815d10ad843f40f3d9f5670915b3
2 files changed
+6
.gitignore
+1
@@ -56,4 +56,5 @@ web/control.html
56
web/datasource.css
57
web/gadget.xml
58
web/index_new.html
59
+web/version.txt
60
system/netdata-openrc
web/Makefile.am
+5
@@ -16,6 +16,7 @@ dist_web_DATA = \
16
favicon.ico \
17
netdata-swagger.yaml \
18
netdata-swagger.json \
19
+ version.txt \
20
$(NULL)
21
22
webolddir=$(webdir)/old
@@ -89,4 +90,8 @@ dist_webimages_DATA = \
90
images/seo-performance-multi-size.icns \
91
$(NULL)
92
93
+version.txt:
94
+ git log -n 1 | grep ^commit\ | cut -d " " -f 2 > version.txt.tmp
95
+ mv version.txt.tmp version.txt
96
97
+.PHONY: version.txt