source: tol/tolbase/bin/tolbase.sh @ 59323be

1941-docker-image-to-testdevel
Last change on this file since 59323be was 59323be, checked in by Jorge Pérez <josp.jorge@…>, 11 years ago

fixes #1903, nos apoyamos en un script auxiliar para que tk se inicialice en modo no interactivo, para ello hacemos uso de la función Tcl_SetStartupScript, por ahora WIN32 sigue como antes pero hay que validar como responde cuando se invoca con argumentos por linea de comandos, cambiamos /bin/sh por /bin/bash

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

  • Property mode set to 100644
File size: 561 bytes
Line 
1#!/bin/bash
2# Shell wrapper for TOL executable.
3
4SCRIPT=$(readlink -f "$0")
5SCRIPTPATH=$(dirname "$SCRIPT")
6echo $SCRIPTPATH
7
8if [ -f ${SCRIPTPATH}/tolenv.sh ] ; then
9  source ${SCRIPTPATH}/tolenv.sh
10else
11  echo "${SCRIPTPATH}/tolenv.sh not found, running without environment"
12fi
13
14#TFILE="/tmp/$(basename $0).$$.tmp.tcl"
15#echo lappend auto_path file normalize [file join [ file dir [info script] ] .. lib ] ]
16#echo package require TolbaseApp > ${TFILE}
17#echo after idle {file delete ${TFILE}} >> ${TFILE}
18
19${SCRIPTPATH}/tolbase ${SCRIPTPATH}/tolbase.tcl "${@}"
Note: See TracBrowser for help on using the repository browser.