Tcl Source Code

Ticket Change Details
Login
Overview

Artifact ID: 94a712ee3d3fa21dba0fe66fe2d96ae92b31758f
Ticket: 1083290fffffffffffffffffffffffffffffffff
Refactor library setup for local tclsh into script
User & Date: dkf 2016-08-25 10:56:30
Changes

  1. closer changed to: "nobody"
  2. comment changed to:
    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
    
  3. login: "dkf"
  4. mimetype: "text/plain"
  5. severity changed to: "Minor"
  6. subsystem changed to: "53. Configuration and Build Tools"