source: tol/building/Linux/build_installer.sh @ a965ab8

1941-docker-image-to-testdevel
Last change on this file since a965ab8 was e02d24a, checked in by Pedro Gea <pgea@…>, 11 years ago

Refs #1880
Scripts de compilación para Linux (independiente de plataforma).
La carpeta de compilación del cmake se traslada a una ubicación en el home para facilitar la compilación con máquinas virtuales de una misma fuente de código.

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@7089 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#!/bin/bash
2#*********************************************************
3# La llamada al script no recibe argumentos:
4#   ./build_instaler.sh
5#*********************************************************
6# Durante el proceso se pregunta por cada una de las etapas.
7
8BUILD_DIR=$PWD/$(dirname $0)
9
10TRUNK_DIR=$BUILD_DIR/../..
11
12CMAKE_DIR=~/CMake_Build/installer
13
14echo "----------------------------------------------------"
15echo " Building TOL installer "
16echo "----------------------------------------------------"
17
18if [ -d "$CMAKE_DIR" ]; then
19  echo "/!\ There is already a built folder of $package."
20  echo -n "mkdir? (y/n) "
21  read answer
22  if [ "$answer" = "y" ]; then
23    rm -r "$CMAKE_DIR"
24    mkdir -p "$CMAKE_DIR"
25  fi
26else
27  mkdir -p "$CMAKE_DIR"
28fi
29
30cd $CMAKE_DIR
31
32echo -n "cmake? (y/n) "
33read answer
34if [ "$answer" = "y" ]
35then
36  cmake $TRUNK_DIR -DTOL_RUNTIME_DIR=/usr/local/tol3.2 -DCMAKE_BUILD_TYPE=release
37fi
38
39echo -n "cpack -G DEB? (y/n) "
40read answer
41if [ "$answer" = "y" ]
42then
43  cpack -G DEB
44fi
45
46echo -n "cpack -G RPM? (y/n) "
47read answer
48if [ "$answer" = "y" ]
49then
50  cpack -G RPM
51fi
52
53echo -n "press enter to exit "
54read answer
Note: See TracBrowser for help on using the repository browser.