diff options
Diffstat (limited to 'chromium/third_party/glslang/src/make-revision')
-rwxr-xr-x | chromium/third_party/glslang/src/make-revision | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chromium/third_party/glslang/src/make-revision b/chromium/third_party/glslang/src/make-revision new file mode 100755 index 00000000000..492e437562a --- /dev/null +++ b/chromium/third_party/glslang/src/make-revision @@ -0,0 +1,10 @@ +#!/bin/sh +( +echo "// This header is generated by the make-revision script." +echo "// For the version, it uses the latest git tag followed by the number of commits." +echo "// For the date, it uses the current date (when then script is run)." + +echo +echo \#define GLSLANG_REVISION \"`git describe --tags --abbrev=0`.`git log --oneline | wc -l`\" +echo \#define GLSLANG_DATE \"`date +%d-%b-%Y`\" +) > glslang/Include/revision.h |