7 # make sure we are in the good directory
8 DIR
=$
( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
11 # pull the latest changes
14 # retrieve release after the repo update
22 # create the sources tgz in the release directory
24 tar czf .
/opentx.tgz opentx
/radio
/src opentx
/radio
/util
26 # make lua fields for all radio variants
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
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