source: tol/building/Linux_32/build_package.sh @ bb5bbac

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

Refs #1880
Scripts de producción de paquetes para Linux32
Otros cambios

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

  • Property mode set to 100755
File size: 916 bytes
Line 
1#!/bin/bash
2
3if [ "$1" = "" ]; then
4  echo -n "package? "
5  read package
6else
7  package=$1
8fi
9
10PACKAGE_DIR=$(dirname $0)/../../../OfficialTolArchiveNetwork/$package
11if [ -f "$PACKAGE_DIR/CMakeLists.txt" ]; then
12  cd $PACKAGE_DIR
13  CMAKE_DIR=BUILD_CMAKE/m32/release
14else
15  if [ -d "$PACKAGE_DIR" ]; then
16    echo "No se encuentra el CMakeLists.txt"
17  else
18    echo "No se encuentra el paquete"
19  fi
20  echo -n "press enter to exit "
21  read answer
22  exit
23fi
24
25echo -n "mkdir? (y/n) "
26read answer
27if [ "$answer" = "y" ]; then
28  if [ -d "$CMAKE_DIR" ]; then
29    rm -r "$CMAKE_DIR"
30  fi
31  mkdir -p "$CMAKE_DIR"
32fi
33
34cd $CMAKE_DIR
35
36echo -n "cmake? (y/n) "
37read answer
38if [ "$answer" = "y" ]; then
39  cmake ../../.. -DTOL_PREFIX_PATH=/usr/local/tol3.2-release -DCMAKE_BUILD_TYPE=Release
40fi
41
42echo -n "make? (y/n) "
43read answer
44if [ "$answer" = "y" ]; then
45  make
46fi
47
48echo -n "press enter to continue "
49read answer
50
51
52
53
54
55
56
57
58
59
60
Note: See TracBrowser for help on using the repository browser.