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:
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
set -e
|
||||
|
||||
branch=next
|
||||
@@ -7,10 +7,12 @@ workdir=/home/opentx/nightly22
|
||||
output=/var/www/html/2.2/nightly
|
||||
|
||||
# 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
|
||||
then
|
||||
exit
|
||||
else
|
||||
else
|
||||
cp -r ${workdir}/code/radio/sdcard/horus/opentx.sdcard.version ${workdir}
|
||||
cd ${workdir}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user