Revision: 12723
http://sourceforge.net/p/plplot/code/12723
Author: airwin
Date: 2013-11-20 07:14:37 +0000 (Wed, 20 Nov 2013)
Log Message:
-----------
Change over to "exec" style like tcl/standard_examples,
tcl/tclsh_standard_examples, and tk/wish_standard_examples.
Modified Paths:
--------------
trunk/examples/tk/standard_examples.in
Modified: trunk/examples/tk/standard_examples.in
===================================================================
--- trunk/examples/tk/standard_examples.in 2013-11-20 06:24:21 UTC (rev 12722)
+++ trunk/examples/tk/standard_examples.in 2013-11-20 07:14:37 UTC (rev 12723)
@@ -2,11 +2,10 @@
# Run plserver example for standard examples.
# Drop examples 14 and 31 because querying for devices does not
# seem to work in this context.
-# Note the backslash at the end - this causes Tcl to ignore
-# the next line. It becomes a valid Tcl script as well as
-# valid shell script
-# \
-@plserver_LOCATION@ <<EOF
+# The following exec command reexecutes the script under wish. This
+# is possible because all comment lines are ignored by wish including
+# continued ones with a trailing backslash like this one \
+exec @plserver_LOCATION@ -f "$0" "$@"
source tkdemos.tcl
0
1
@@ -40,4 +39,3 @@
30
33
exit
-EOF
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|