John Kessenich | 0da9eaa | 2015-08-01 17:10:02 -0600 | [diff] [blame] | 1 | #!/bin/sh |
John Kessenich | 61d7d7a | 2015-08-02 16:11:21 -0600 | [diff] [blame] | 2 | ( |
John Kessenich | 0da9eaa | 2015-08-01 17:10:02 -0600 | [diff] [blame] | 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`\" |
John Kessenich | 61d7d7a | 2015-08-02 16:11:21 -0600 | [diff] [blame] | 10 | ) > glslang/Include/revision.h |