Steven Mestdagh wrote:
Stuart Cassoff [2008-10-21, 01:53:17]:
New [dict] lessons, bugfixes.
Theoretically improved port Makefile.
Committed, along with your 8.5.5 update for tcl/tk.
I did the substitution in a simpler way. SUBST_CMD will do what you need in
many cases, which avoids too much perl in the makefiles ;)
Great - thanks! But ...
There are two commonly used methods to start Tcl scripts.
Discussed in detail here: http://wiki.tcl.tk/812
That removed line of perl takes care of the most common case.
This is also in the tkcon port.
Your patch does not implement the preferred "$0" ${1+"$@"} style.
Would 'exec wish8.5' not be preferred over 'exec /usr/local/bin/wish8.5'?
In case a person wants to change their path, run a different wish, etc.
Thing is, this is going to have to be done to practically all Tcl scripts,
for either tclsh or wish, and I'd rather come up with something
that could eventually go into tcl.port.mk than patching.
Something that a porter could easily use perhaps simply by setting
a variable with the names of the files to be adjusted or ... something?
I'm not too sure about the path to take so I started with this small bit.
Stu