]> arthur.barton.de Git - netdata.git/commitdiff
Add a generated version.txt containing commit id
authorPhilip Whineray <phil@firehol.org>
Mon, 4 Apr 2016 21:15:27 +0000 (22:15 +0100)
committerPhilip Whineray <phil@firehol.org>
Mon, 4 Apr 2016 21:25:56 +0000 (22:25 +0100)
.gitignore
web/Makefile.am

index 78a63f72c2515fdde00ad1b583c01366632564d8..eb256f3ac7b1efedfc7b895a4e540c6a82031003 100644 (file)
@@ -56,4 +56,5 @@ web/control.html
 web/datasource.css
 web/gadget.xml
 web/index_new.html
+web/version.txt
 system/netdata-openrc
index 56fe879238a710d24471bc9d43263c24fe591a75..a437f50af2c1d25f2652cbb0f72bd98f5566e349 100644 (file)
@@ -16,6 +16,7 @@ dist_web_DATA = \
        favicon.ico \
        netdata-swagger.yaml \
        netdata-swagger.json \
+        version.txt \
         $(NULL)
 
 webolddir=$(webdir)/old
@@ -89,4 +90,8 @@ dist_webimages_DATA = \
        images/seo-performance-multi-size.icns \
         $(NULL)
 
+version.txt:
+       git log -n 1 | grep ^commit\ | cut -d " " -f 2 > version.txt.tmp
+       mv version.txt.tmp version.txt
 
+.PHONY: version.txt