Version reporting: Restart active use of revision.h, now based on a git tag.
[platform/upstream/glslang.git] / make-revision
1 #!/bin/sh
2
3 echo "// This header is generated by the make-revision script."
4 echo "// For the version, it uses the latest git tag followed by the number of commits."
5 echo "// For the date, it uses the current date (when then script is run)."
6
7 echo
8 echo \#define GLSLANG_REVISION \"`git describe --tags --abbrev=0`.`git log --oneline | wc -l`\"
9 echo \#define GLSLANG_DATE \"`date +%d-%b-%Y`\"