Fr Translation update (#5991)
[opentx.git] / jenkins / release-20 / release-firmware.sh
blob6c0ea15d9bb269b1947f35098da450afe8b7c204
1 #!/bin/bash
3 # stops on first error
4 set -e
6 # make sure we are in the good directory
7 cd ~opentx/release-20/
9 # pull the latest changes
10 ./update-repo.sh
12 # make the stamp
13 cd opentx/radio/src
14 make clean
15 make opentx-stamp
16 make lua_exports.cpp
18 # create the sources tgz in the release directory
19 cd ../../..
20 tar czf ./opentx.tgz opentx/radio/src opentx/radio/util
22 # copy the stamp and the release-notes to the http server
23 cd ~opentx/release-20/
24 cp opentx/radio/src/stamp-opentx.txt /var/www/html/downloads-20/firmware/
25 cp opentx/radio/releasenotes.txt /var/www/html/downloads-20/firmware/
26 cp opentx/radio/src/lua_fields.txt /var/www/html/downloads-20/firmware/
28 # erase all previous builds
29 rm -f /var/www/html/downloads-20/firmware/binaries/opentx*.hex
30 rm -f /var/www/html/downloads-20/firmware/binaries/opentx*.bin
32 # clean the sources
33 cd opentx/radio/src
34 make clean