Tcl Source Code

View Ticket
Login
Ticket UUID: 1083290
Title: Refactor library setup for local tclsh into script
Type: RFE Version: None
Submitter: davidw Created on: 2004-12-11 00:33:21
Subsystem: 53. Configuration and Build Tools Assigned To: dgp
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2016-08-25 10:56:30
Resolution: None Closed By: nobody
    Closed on:
Description:
Hi,

I was thinking - would it be possible to refactor some of
the targets that launch the local tclsh into a shell
script?

In several places in the Makefile.in there is code like:

LD_LIBRARY_PATH=`pwd`:; export LD_LIBRARY_PATH; \
TCL_LIBRARY="/home/davidw/workshop/tcl/library"; export
TCL_LIBRARY;

It would be nice to factor this out into a shell script
that then launches whatever commands are given to it,
via $@.

This would have two advantages:

1) Reducing the code size ever so slightly.

2) Improving flexibility by making it easy to run
whatever one wants from a shell script instead of being
required to invoke make with funny args.

3) Making the script easy to find for casual hackers. 
The Makefile targets are not as evident to the casual
observer in my opinion.

Thanks
Dave