cangrow.sh remove old version header stuff
This commit is contained in:
parent
603118ad0c
commit
219586de93
1 changed files with 2 additions and 10 deletions
|
@ -30,14 +30,6 @@ function check_acli() {
|
||||||
fi
|
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
|
test -z $1 && help
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
|
@ -99,7 +91,7 @@ case $1 in
|
||||||
b|build)
|
b|build)
|
||||||
check_acli
|
check_acli
|
||||||
echo ":: Building firmware $VER $BUILD, target dir: $(pwd)/build/"
|
echo ":: Building firmware $VER $BUILD, target dir: $(pwd)/build/"
|
||||||
#version_header
|
|
||||||
test -d build || mkdir build
|
test -d build || mkdir build
|
||||||
|
|
||||||
|
|
||||||
|
@ -117,7 +109,7 @@ case $1 in
|
||||||
u|upload)
|
u|upload)
|
||||||
check_acli
|
check_acli
|
||||||
echo ":: Build and upload firmware $VER $BUILD to $TTY"
|
echo ":: Build and upload firmware $VER $BUILD to $TTY"
|
||||||
#version_header
|
|
||||||
test -d build || mkdir build
|
test -d build || mkdir build
|
||||||
|
|
||||||
# esp8266 and esp32 compiler have to use different compile flags for VER and BUILD
|
# esp8266 and esp32 compiler have to use different compile flags for VER and BUILD
|
||||||
|
|
Loading…
Reference in a new issue