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
17 DESTDIR
=/var
/www
/html
/downloads-
${version}/companion
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
29 cp .
/companion
${version}-${release}-i686.rpm ${DESTDIR}
31 chmod -Rf g
+w . || true
33 # request companion compilation on Windows
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