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}/nightlies
/companion
23 # create companion rpm
24 rm -rf ${DIR}/companion-build
/
27 cmake
-DPCB=TARANIS ..
/opentx
29 cp .
/companion
${version}-${release}${OPENTX_VERSION_SUFFIX}-i686.rpm ${DESTDIR}/linux
30 chmod -Rf g
+w
${DESTDIR}/linux/companion${version}-${release}${OPENTX_VERSION_SUFFIX}-i686.rpm
32 # request companion compilation on Windows
34 wget
-qO- http
://winbox.open-tx.org
/companion-builds
/compile22.php?branch
=${branch}\
&suffix
=${OPENTX_VERSION_SUFFIX}
35 wget
-O windows
/companion-windows-
${release}${OPENTX_VERSION_SUFFIX}.exe http://winbox.open-tx.org/companion-builds/companion-windows-${release}${OPENTX_VERSION_SUFFIX}.exe
36 chmod -Rf g
+w windows
/companion-windows-
${release}${OPENTX_VERSION_SUFFIX}.exe
38 # update windows stamp
39 cp $DIR/companion-build
/version.h .
/companion-windows.stamp
40 chmod -Rf g
+w .
/companion-windows.stamp