Versioning: Address #1255: Move to semantic versioning.

Still missing is automation and final decisions on mechanisms in general.
This commit is contained in:
John Kessenich
2018-03-05 22:23:17 -07:00
parent 41e24fdb83
commit c6c80a6e48
6 changed files with 38 additions and 19 deletions

View File

@@ -1,10 +1,6 @@
#!/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`\"
echo \#define GLSLANG_PATCH_LEVEL `git log --oneline | wc -l`
) > glslang/Include/revision.h