Changeset 3cc480d in tol for toltcl/generic


Ignore:
Timestamp:
Nov 12, 2015, 10:50:39 AM (11 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
297e754
Parents:
43da12e
Message:

fixes #1894, en la inicialización de tolsh se incluye en la variable auto_path el path del directorio lib de tol que es donde se debe instalar toltcl. En CMakeLists.txt se fuerza a que CMAKE_INSTALL_PREFIX sea el de TOL. La variable INSTALL_WITH_TOL, por omisión a 1, permite controlar si queremos instalarlo en el prefix de tcl del sistema.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • toltcl/generic/tolsh.c

    r43da12e r3cc480d  
    3030    }
    3131  SetupArgv( interp );
    32   Tcl_PkgRequire( interp, "TolshApp", TOLTCL_VERSION, 1);
     32  Tcl_VarEval( interp, "lappend", " auto_path", " [file join",
     33               " [file dir [file dir ", Tcl_GetNameOfExecutable(),
     34               " ] ] lib ]", NULL );
     35  if ( !Tcl_PkgRequire( interp, "TolshApp", TOLTCL_VERSION, 1) )
     36    {
     37    printf( "%s\n", Tcl_GetStringResult( interp ) );
     38    Tcl_Exit( -1 );
     39    }
    3340  return TCL_OK;
    3441}
Note: See TracChangeset for help on using the changeset viewer.