source: tol/building/Linux/produce_package.sh @ 2c66570

1941-docker-image-to-testdevel
Last change on this file since 2c66570 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.4 KB
Line 
1#!/bin/bash
2#************************************************************
3# La llamada al script recibe un argumento:
4#   ./produce_package.sh [|<package_name>]
5#************************************************************
6# Durante el proceso se pregunta por cada una de las etapas.
7#************************************************************
8
9BUILD_DIR=$PWD/$(dirname $0)
10
11if [ "$1" = "" ]; then
12  echo -n "package? "
13  read package
14else
15  package=$1
16fi
17
18PACKAGE_DIR=$BUILD_DIR/../../../OfficialTolArchiveNetwork/$package
19
20if [ -d "$PACKAGE_DIR" ]; then
21  if [ -f "$PACKAGE_DIR/CMakeLists.txt" ]; then
22    echo -n "build? (y/n) "
23    read answer
24    if [ "$answer" = "y" ]; then
25      ./build_package.sh $package
26    fi
27    echo -n "svn commit? (y/n) "
28    read answer
29    if [ "$answer" = "y" ]; then
30      MACHINE_TYPE=`uname -m`
31      if [ ${MACHINE_TYPE} = 'x86_64' ]; then
32        svn commit "$PACKAGE_DIR/CppTools/Linux_64_GNU" --message "Archivos .so del paquete $package recompilados para Linux 64"
33      else
34        svn commit "$PACKAGE_DIR/CppTools/Linux_x86_32" --message "Archivos .so del paquete $package recompilados para Linux 32"
35      fi
36    fi
37  else
38    echo "/!\ The package $package has not a CMakeLists.txt."
39  fi
40else
41  echo "(!) Cannot find the package $package."
42  exit
43fi
44
45echo -n "produce? (y/n) "
46read answer
47if [ "$answer" = "y" ]; then
48  tolsh -c"Text Package=\"$package\"" ../produce_package.tol
49fi
Note: See TracBrowser for help on using the repository browser.