blob: 492e437562a496e40c6ba058b556609ad686847f [file] [log] [blame]
John Kessenich0da9eaa2015-08-01 17:10:02 -06001#!/bin/sh
John Kessenich61d7d7a2015-08-02 16:11:21 -06002(
John Kessenich0da9eaa2015-08-01 17:10:02 -06003echo "// This header is generated by the make-revision script."
4echo "// For the version, it uses the latest git tag followed by the number of commits."
5echo "// For the date, it uses the current date (when then script is run)."
6
7echo
8echo \#define GLSLANG_REVISION \"`git describe --tags --abbrev=0`.`git log --oneline | wc -l`\"
9echo \#define GLSLANG_DATE \"`date +%d-%b-%Y`\"
John Kessenich61d7d7a2015-08-02 16:11:21 -060010) > glslang/Include/revision.h