File: findconfig

package info (click to toggle)
nvi 1.81.6-15
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 11,852 kB
  • sloc: ansic: 43,645; sh: 11,207; makefile: 604; perl: 262; tcl: 234; awk: 19
file content (14 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" "$@"

# A utility that searches for the 'tclConfig.sh' shell script
# which contains platform-specific compiler/linker options for
# building Tcl programs and shared libraries.

foreach dir $tcl_pkgPath {
    if [file exists $dir/tclConfig.sh] {
        puts $dir/tclConfig.sh
        exit
    }
}