getVersion added to Lua functions

This commit is contained in:
Bertrand Songis
2014-02-10 16:05:32 +01:00
parent ce6e9fa4a9
commit cde4fea817
2 changed files with 14 additions and 8 deletions
+2 -4
View File
@@ -1082,13 +1082,11 @@ sym: $(TARGET).sym
# Build stamp-file
stamp_header:
@echo
@echo "Generate Version-stamp:"
@echo "//Automatically generated file (Makefile) - do not edit" > stamp-opentx.h
@echo "// Automatically generated file (Makefile) - do not edit" > stamp-opentx.h
@echo "#define DATE_STR \"`date +%Y-%m-%d | tr -d '\r\n'`\"" >> stamp-opentx.h
@echo "#define TIME_STR \"`date +%H:%M:%S | tr -d '\r\n'`\"" >> stamp-opentx.h
@echo "#define VERS_STR \"$(VERSION)\"" >> stamp-opentx.h
@cat stamp-opentx.h
@echo "#define VERS_NUM $(VERSION)" >> stamp-opentx.h
9x-stamp:
@echo "#define DATE_STR \"`date +%Y-%m-%d`\"" > stamp-opentx-9x.txt