Fix negative gvars precision (#6321)
[opentx.git] / jenkins / release-21 / release-companion.sh
blobffde1ed763e1ee3ae408ddc59608946ba28a49c9
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 DESTDIR=/var/www/html/downloads-${version}/companion
19 # clean radio source
20 cd opentx/radio/src
21 make clean
23 # create companion rpm
24 rm -rf ${DIR}/companion-build/
25 mkdir -p ${DIR}/companion-build/
26 cd ${DIR}/companion-build/
27 cmake ../opentx/companion/src
28 make package
29 cp ./companion${version}-${release}-i686.rpm ${DESTDIR}
30 make stamp
31 chmod -Rf g+w . || true
33 # request companion compilation on Windows
34 cd ${DESTDIR}
35 wget -qO- http://winbox.open-tx.org/companion-builds/compile21.php?branch=${branch}
36 wget -O companion-windows-${release}.exe http://winbox.open-tx.org/companion-builds/companion-windows-${release}.exe
37 mv ${DIR}/opentx/companion/companion.stamp ./companion-windows.stamp
39 chmod -Rf g+w . || true