chiark / gitweb /
build system: source everything from $lib
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 10 Mar 2020 14:04:27 +0000 (14:04 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 10 Mar 2020 14:04:27 +0000 (14:04 +0000)
No functional change so far.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
example
xbatmon-simple-tray

diff --git a/example b/example
index d783f3fd745296e28ff08c3a212c878ee63da8fd..7cf6b15111ecee755463996772bece81ca484260 100755 (executable)
--- a/example
+++ b/example
 # eg, for a silly example:
 #   .../example xterm -id
 
-source applet.tcl
-source subproc.tcl
-source utils.tcl
+set lib .
+
+source $lib/applet.tcl
+source $lib/subproc.tcl
+source $lib/utils.tcl
 
 set debug::debug puts
 
index 99619e99926ae1d6e67fe03e177f272f6531b7e9..72ed960b0b4db277231791d1c83e9e1789890d5e 100755 (executable)
@@ -9,9 +9,11 @@
 #  xbatmon-simple-tray
 #    [WISH-OPTIONS... [-- TRAY-EMBED-OPTIONS... [-- XBATMON-SIMPLE-OPTIONS...]]]
 
-source subproc.tcl
-source utils.tcl
-source args.tcl
+set lib .
+
+source $lib/subproc.tcl
+source $lib/utils.tcl
+source $lib/args.tcl
 
 proc cmdline {id orientation} {
     global argv
@@ -199,7 +201,7 @@ proc tt-info {chan} {
 #----- modes -----
 
 proc mode/normal {} {
-    uplevel #0 source applet.tcl
+    uplevel #0 { source $lib/applet.tcl }
     applet::setup-subproc cmdline
     applet::setup-tooltip tt-show tt-invisible
 }