commit and branch into version number

This commit is contained in:
livello
2018-03-15 04:31:30 +03:00
parent 5fe20078b1
commit c09eb4d870
3 changed files with 3 additions and 3 deletions

1
.gitignore vendored
View File

@@ -2,3 +2,4 @@
.piolibdeps .piolibdeps
.clang_complete .clang_complete
.gcc-flags.json .gcc-flags.json
CMakeListsPrivate.txt

View File

@@ -133,7 +133,7 @@ EthernetClient ethClient;
#define QUOTE(x) Q(x) #define QUOTE(x) Q(x)
#ifndef PIO_SRC_REV #ifndef PIO_SRC_REV
#define PIO_SRC_REV_BRANCH v0.97 #define PIO_SRC_REV v0.97
#endif #endif

View File

@@ -18,8 +18,7 @@ platform = atmelsam
framework = arduino framework = arduino
board = due board = due
lib_ldf_mode = chain+ lib_ldf_mode = chain+
build_flags = !echo -n "-DPIO_SRC_REV="$(git branch) build_flags = !echo -n "-DPIO_SRC_REV="$(git log --oneline -1)
;echo "-DPIO_SRC_REV_COMMIT="$( git rev-parse --short HEAD)
lib_deps = lib_deps =
https://github.com/sebnil/DueFlashStorage https://github.com/sebnil/DueFlashStorage
https://github.com/livello/Arduino-Temperature-Control-Library.git#1306c49 https://github.com/livello/Arduino-Temperature-Control-Library.git#1306c49