3djc/build revise handling sdcard.version (#3897)
* Move opentx.sdcard.version creation to server build process * opentx.sdcard.version should not exist prior, but just in case ...
This commit is contained in:
@@ -10,8 +10,6 @@ message(STATUS "OpenTX ${VERSION}")
|
|||||||
|
|
||||||
set(SDCARD_REVISION "0003")
|
set(SDCARD_REVISION "0003")
|
||||||
set(SDCARD_VERSION ${VERSION_MAJOR}.${VERSION_MINOR}V${SDCARD_REVISION})
|
set(SDCARD_VERSION ${VERSION_MAJOR}.${VERSION_MINOR}V${SDCARD_REVISION})
|
||||||
file(WRITE radio/sdcard/horus/opentx.sdcard.version ${SDCARD_VERSION})
|
|
||||||
file(WRITE radio/sdcard/taranis/opentx.sdcard.version ${SDCARD_VERSION})
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 2.8)
|
cmake_minimum_required(VERSION 2.8)
|
||||||
cmake_policy(SET CMP0020 NEW)
|
cmake_policy(SET CMP0020 NEW)
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
2.2V0003
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
2.2V0003
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
branch=next
|
branch=next
|
||||||
@@ -7,10 +7,12 @@ workdir=/home/opentx/nightly22
|
|||||||
output=/var/www/html/2.2/nightly
|
output=/var/www/html/2.2/nightly
|
||||||
|
|
||||||
# Handle opentx.sdcard.version
|
# Handle opentx.sdcard.version
|
||||||
|
grep 'set(SDCARD_REVISION' ${workdir}/code/CMakeLists.txt | grep -o '".*"' | sed 's/"//g' > ${workdir}/code/radio/sdcard/horus/opentx.sdcard.version
|
||||||
|
grep 'set(SDCARD_REVISION' ${workdir}/code/CMakeLists.txt | grep -o '".*"' | sed 's/"//g' > ${workdir}/code/radio/sdcard/taranis/opentx.sdcard.version
|
||||||
if cmp --silent ${workdir}/code/radio/sdcard/horus/opentx.sdcard.version ${workdir}/opentx.sdcard.version
|
if cmp --silent ${workdir}/code/radio/sdcard/horus/opentx.sdcard.version ${workdir}/opentx.sdcard.version
|
||||||
then
|
then
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
cp -r ${workdir}/code/radio/sdcard/horus/opentx.sdcard.version ${workdir}
|
cp -r ${workdir}/code/radio/sdcard/horus/opentx.sdcard.version ${workdir}
|
||||||
cd ${workdir}
|
cd ${workdir}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user