This commit is contained in:
2021-03-25 10:58:51 +01:00
parent 44696c4d97
commit 1a03fdb9da
4 changed files with 19 additions and 0 deletions

10
tools/setVersion.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
VERSION=`git rev-parse --short=8 HEAD`
cat - > ./src/main/version.c <<EOF
#include <stdint.h>
const uint32_t APP_VERSION = 0x${VERSION};
EOF