cangrow.sh remove old version header stuff

This commit is contained in:
Marcus 2024-10-19 02:33:55 +02:00
parent 603118ad0c
commit 219586de93

View file

@ -30,14 +30,6 @@ function check_acli() {
fi
}
function version_header() {
echo "/* CanGrow_Version.h gets generated from cangrow.sh */
const char* CanGrowVer = \"${VER}\";
const char* CanGrowBuild = \"${BUILD}\";
" > include/CanGrow_Version.h
}
test -z $1 && help
case $1 in
@ -99,7 +91,7 @@ case $1 in
b|build)
check_acli
echo ":: Building firmware $VER $BUILD, target dir: $(pwd)/build/"
#version_header
test -d build || mkdir build
@ -117,7 +109,7 @@ case $1 in
u|upload)
check_acli
echo ":: Build and upload firmware $VER $BUILD to $TTY"
#version_header
test -d build || mkdir build
# esp8266 and esp32 compiler have to use different compile flags for VER and BUILD