Changeset a96b184 in tol


Ignore:
Timestamp:
Nov 20, 2015, 1:01:15 PM (11 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
a6c2559
Parents:
39b4013
Message:

refs #1860, por omisión se genera el archivo /bin/tolenv.sh si se omite el segundo argumento

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/confenv.sh

    r39b4013 ra96b184  
    1818}
    1919
    20 if [ $# -ne 2 ]; then
    21   echo "usage: $0 dir output.sh"
     20if [ $# -eq 1 ]; then
     21  TOL_PREFIX=$1
     22  TOLENV=$1/bin/tolenv.sh
     23elif [ $# -eq 2 ]; then
     24  TOL_PREFIX=$1
     25  TOLENV=$2
     26else
     27  echo "usage: $0 TOL_PREFIX_DIR ?tolenv.sh?"
    2228  exit
    2329fi
    2430
    25 # check if dir provided is a tol installation
    26 #
    27 
    28 check_tol_program $1 bin/tolcon
    29 check_tol_program $1 bin/tolsh
     31check_tol_program $TOL_PREFIX bin/tolcon
     32check_tol_program $TOL_PREFIX bin/tolsh
    3033
    3134# look for R
    … …  
    4346Rinside_INSTALLED=$(check_installed RInside)
    4447
    45 echo Rcpp_INSTALLED=$Rcpp_INSTALLED
    46 echo Rinside_INSTALLED=$Rinside_INSTALLED
    47 
    4848if [ $Rcpp_INSTALLED -eq 1 ] ; then
    4949  echo "Rcpp is installed"
    … …  
    5959fi
    6060
    61 _LD_PATH=$1/lib:$R_HOME_DIR/lib
     61_LD_PATH=$TOL_PREFIX/lib:$R_HOME_DIR/lib
    6262if [ x"$RINSIDE_PATH" != x ]; then
    6363 _LD_PATH=$_LD_PATH:$RINSIDE_PATH/lib
    6464fi
    6565
    66 cat << EOF > $2
     66cat << EOF > $TOLENV
    6767# environment needed for tol processes
    6868#
    … …  
    7272EOF
    7373
    74 
Note: See TracChangeset for help on using the changeset viewer.