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}/nightly
/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}${OPENTX_VERSION_SUFFIX}-i686.rpm ${DESTDIR}
32 chmod -Rf g
+w . || true
34 # request companion compilation on Windows
36 wget
-qO- http
://winbox.open-tx.org
/companion-builds
/compile21.php?branch
=${branch}\
&suffix
=${OPENTX_VERSION_SUFFIX}
37 wget
-O companion-windows-
${release}${OPENTX_VERSION_SUFFIX}.exe http://winbox.open-tx.org/companion-builds/companion-windows-${release}${OPENTX_VERSION_SUFFIX}.exe
38 mv ${DIR}/opentx
/companion
/companion.stamp .
/companion-windows.stamp
40 chmod -Rf g
+w . || true