Missing file
[opentx.git] / jenkins / release-21 / release-firmware.sh
blob0d00ceaf368460aaea8871b09b0a8e7dcf2b07b4
1 #!/bin/bash
3 # stops on first error
4 set -e
5 set -x
7 # make sure we are in the good directory
8 DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
9 cd $DIR
11 # pull the latest changes
12 ./update-repo.sh
14 # retrieve release after the repo update
15 source ./version.sh
17 # make the stamp
18 cd opentx/radio/src
19 make clean
20 make opentx-stamp
22 # create the sources tgz in the release directory
23 cd ../../..
24 tar czf ./opentx.tgz opentx/radio/src opentx/radio/util
26 # make lua fields for all radio variants
27 cd opentx/radio/src
28 make lua_exports_taranis.inc lua_exports_taranis_x9e.inc
30 DESTDIR=/var/www/html/downloads-${version}/firmware
32 # copy the stamp and the release-notes to the http server
33 cd ${DIR}
34 cp opentx/radio/src/stamp-opentx.txt ${DESTDIR}
35 cp opentx/radio/releasenotes.txt ${DESTDIR}
36 cp opentx/radio/src/lua_fields_*.txt ${DESTDIR}
38 # erase all previous builds
39 rm -f ${DESTDIR}/binaries/opentx*.hex
40 rm -f ${DESTDIR}/binaries/opentx*.bin
42 # clean the sources
43 cd opentx/radio/src
44 make clean