6 # make sure we are in the good directory
9 # pull the latest changes
12 # retrieve the version number
14 line
=`grep "VERSION = " Makefile`
15 version
=`expr "$line" : 'VERSION = \([0-9]\..*\)'`
17 # create companion rpm
18 rm -rf ~opentx
/release-20
/companion-build
/
21 cmake ..
/opentx
/companion
/src
24 cp .
/companion-
$version-i686.rpm
/var
/www
/html
/downloads-20
/companion
/
26 chmod -Rf g
+w . || true
28 # request companion compilation on Windows
29 cd /var
/www
/html
/downloads-20
/companion
/
30 wget
-qO- http
://winbox.open-tx.org
/companion-builds
/compile20.php?branch
=2.0
31 wget
-O companionInstall_
$version.exe http
://winbox.open-tx.org
/companion-builds
/companionInstall_
$version.exe
32 mv ~opentx
/release-20
/opentx
/companion
/companion.stamp .
/companion-windows.stamp
34 chmod -Rf g
+w . || true