2015-08-02 02:10:02 +03:00
|
|
|
#!/bin/sh
|
2015-08-03 01:11:21 +03:00
|
|
|
(
|
2015-08-02 02:10:02 +03:00
|
|
|
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`\"
|
2015-08-03 01:11:21 +03:00
|
|
|
) > glslang/Include/revision.h
|