#!/bin/sh
# -*- tcl -*- \
exec wish4.1 -file $0 ${1+"$@"}

# This script installs the SurfIt! tcl modules into the 
# standard library location.

set libdir [info library]
foreach f [glob *.tcl] {
    puts "cp $f $libdir"
    exec cp $f $libdir
}

# Install the surfit script into the bin directory

set binpath [exec which wish4.1]
if {$binpath != {}} {
    puts "cp surfit [file dirname $binpath]"
    exec cp surfit [file dirname $binpath]
}

puts "\nSurfIt! successfully installed\n"
