Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Refactor library setup for local tclsh into script

Open1083290fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 10 years ago
Descriptionplain2004-12-11 00:33:21
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
dkf Ticket [1083290fff]: 1 change [History diff]2009-01-30 21:14:27
dkf Ticket [1083290fff]: 6 changes [History diff]2016-08-25 10:56:30
Log in (anonymous is fine) to add a comment.