source: tol/building/Linux/build_installer.sh @ 2a0a3cd

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

Refs #1880
Revisiones de los scripts

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

  • Property mode set to 100755
File size: 1.2 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#************************************************************
8
9BUILD_DIR=$PWD/$(dirname $0)
10
11TRUNK_DIR=$BUILD_DIR/../..
12if ! [ -d "$TRUNK_DIR" ]; then
13  echo "(!) Cannot find folder: $TRUNK_DIR"
14  exit
15fi
16
17mode=release
18
19echo "----------------------------------------------------"
20echo " Building TOL installer "
21echo "----------------------------------------------------"
22
23CMAKE_DIR=~/CMake_Build/installer/$mode
24if [ -d "$CMAKE_DIR" ]; then
25  echo "/!\ There is already a built folder of $package."
26  echo -n "mkdir? (y/n) "
27  read answer
28  if [ "$answer" = "y" ]; then
29    rm -r "$CMAKE_DIR"
30    mkdir -p "$CMAKE_DIR"
31  fi
32else
33  mkdir -p "$CMAKE_DIR"
34fi
35cd $CMAKE_DIR
36
37echo -n "cmake? (y/n) "
38read answer
39if [ "$answer" = "y" ]
40then
41  cmake $TRUNK_DIR -DTOL_RUNTIME_DIR=/usr/local/tol3.2 -DCMAKE_BUILD_TYPE=release
42fi
43
44echo -n "cpack -G DEB? (y/n) "
45read answer
46if [ "$answer" = "y" ]
47then
48  cpack -G DEB
49fi
50
51echo -n "cpack -G RPM? (y/n) "
52read answer
53if [ "$answer" = "y" ]
54then
55  cpack -G RPM
56fi
Note: See TracBrowser for help on using the repository browser.