| 1 |
#!/bin/sh |
| 2 |
# \ |
| 3 |
#this line restarts wish \ |
| 4 |
exec wish "$0" "$@" > /dev/null |
| 5 |
|
| 6 |
set script [info script] |
| 7 |
while { [file type $script] eq "link" } { |
| 8 |
set script [file readlink $script] |
| 9 |
} |
| 10 |
|
| 11 |
set dir [file dirname [file normalize $script]] |
| 12 |
# |
| 13 |
# INITIALIZATION |
| 14 |
# |
| 15 |
set system(PWD) [pwd] |
| 16 |
set system(TOPDIR) [file normalize [file join $dir ..]] |
| 17 |
if { [info exists env(XCRYSDEN_SCRATCH)] } { |
| 18 |
set system(SCRDIR) $env(XCRYSDEN_SCRATCH) |
| 19 |
} else { |
| 20 |
set system(SCRDIR) /tmp |
| 21 |
} |
| 22 |
source $system(TOPDIR)/Tcl/xcInitLib.tcl |
| 23 |
|
| 24 |
set ptable(ptable_script) 1 |
| 25 |
ptable . |