source: installer/ogagent-devel-installer.sh @ a6d6d6f

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since a6d6d6f was b6de0f0, checked in by ramon <ramongomez@…>, 9 years ago

#718: Corregir errata en revisión r4685 al creación de directorio.

git-svn-id: https://opengnsys.es/svn/branches/version1.1@4866 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 2.5 KB
Line 
1#!/bin/bash
2#/**
3#@file     ogagent-devel-installer.sh
4#@brief    Script to download and prepare the environmnt to compile OGAgent packages.
5#@warning  Some operations need "root" privileges.
6#@note     This script will make a "ogagent" directory with 1.5 GiB approx.
7#@version  1.0 - Initial version for OpenGnsys 1.1.0.
8#@author   Ramón M. Gómez, ETSII Universidad de Sevilla
9#@date     2016-04-07
10#*/ ##
11
12
13# Variables.
14PROGDIR=$PWD/ogagent
15SVNURL=http://opengnsys.es/svn/branches/version1.1/admin/Sources/Clients/ogagent
16
17# Show prerequisites needed to build the environment.
18mkdir -p $PROGDIR || exit 1
19cat << EOT
20
21OGAgent devoloping environment installation
22
23Prerequisites:
24- Install packages, if needed:
25  - Wine for 32-bit with Winetricks
26  - Python 2.7 with pyqt4-dev-tools
27  - realpath
28  - dpkg-dev
29  - rpmbuild
30- Open a web browser and download Microsoft Visual C++ 2010 Redistributable Package (x86) from: http://www.microsoft.com/en-us/download/details.aspx?id=5555
31- Copy or move "vcredist_x86.exe" file to $PROGDIR directory.
32Press [Enter] key when ready to continue.
33EOT
34read
35
36# Importing OGAgent source code.
37svn export --force $SVNURL $PROGDIR || exit 1
38
39# Update PyQt components.
40pushd ogagent/src >/dev/null
41./update.sh
42popd >/dev/null
43
44# Showing instructions to configure Wine.
45cat << EOT
46
47Manual actions:
48- After all downloads, install Gecko for Wine, if needed.
49- Press [Esc] key or "Cancel" button on Winetricks screen.
50- Accept default settings for all other components
51- Uncheck all options on "Completing NSIS Setup" screen.
52Press [Enter] key to init downloads.
53
54EOT
55read
56
57# Downloading and configuring Wine prerequisites.
58pushd ogagent/windows >/dev/null
59./py2exe-wine-linux.sh
60cp -a build.bat ogagent.nsi ..
61ln -s ../../.. wine/drive_c/ogagent
62popd >/dev/null
63
64# Build OGAgent for GNU/Linux.
65pushd $PROGDIR/linux >/dev/null
66sudo ./build-packages.sh
67popd >/dev/null
68
69# Build OGAgent for Windows.
70pushd $PROGDIR/windows >/dev/null
71./build-windows.sh
72popd >/dev/null
73
74# Showing instructions to rebuild OGAgent packages.
75cat << EOT
76
77How to rebuild OGAgent packages
78-------------------------------
79OGAgent project source code is available in $PROGDIR/src directory.
80
81- Commands to update PyQt graphical components for OGAgnet:
82    cd $PROGDIR/src
83    ./update.sh
84
85- Commands to rebuild GNU/Linux packages:
86    cd $PROGDIR/linux
87    sudo ./build-packages.sh
88
89- Commands to rebuild Windows installer:
90    cd $PROGDIR/windows
91    ./build-windows.sh
92
93OGAgent packages will be created into $PROGDIR directory.
94
95EOT
96
Note: See TracBrowser for help on using the repository browser.