source: tol/building/Linux_32/build_installer.sh @ 8561735

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

Refs #1860, #1880
Se revisa el CMakeLists.txt del instalador.
Se incorpora un script para generar el instalador en linux (tanto DEB como RPM).

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

  • Property mode set to 100755
File size: 652 bytes
Line 
1#!/bin/bash
2TRUNK_DIR=$(dirname $0)/../..
3cd $TRUNK_DIR
4CMAKE_DIR=building/Linux_32/installer
5
6echo -n "mkdir? (y/n) "
7read answer
8if [ "$answer" = "y" ]
9then
10  if [ -d "$CMAKE_DIR" ]; then
11    rm -r "$CMAKE_DIR"
12  fi
13  mkdir -p "$CMAKE_DIR"
14fi
15
16cd $CMAKE_DIR
17
18echo -n "cmake? (y/n) "
19read answer
20if [ "$answer" = "y" ]
21then
22  cmake -DTOL_RUNTIME_DIR=/usr/local/tol3.2-release -DCMAKE_BUILD_TYPE=Release ../../..
23fi
24
25echo -n "cpack -G DEB? (y/n) "
26read answer
27if [ "$answer" = "y" ]
28then
29  cpack -G DEB
30fi
31
32echo -n "cpack -G RPM? (y/n) "
33read answer
34if [ "$answer" = "y" ]
35then
36  cpack -G RPM
37fi
38
39echo -n "press enter to exit "
40read answer
41
42
43
44
45
46
47
48
49
50
51
Note: See TracBrowser for help on using the repository browser.