#!/bin/sh
#
# Run this script to install dp.  Then register as a user by filling out 
# the form at
#	http://www.cs.cornell.edu/Info/Projects/zeno/Tcl-DP/reg-form.html
#
# If you want to install somewhere other than /usr/local, you have 2 choices
#   1. Grab the source and compile it.
#   2. Change prefix and exec_prefix below to match the directory where you
#      want to install machine independent and machine dependent files,
#      respectively, and then create symlink from $prefix/lib/{tcl7.4,
#      tk4.0, and dp3.4) to /usr/local/lib (i.e., run
#	"ln -s $prefix/lib/dp3.4 /usr/local/lib/dp3.4", etc)
#      Tcl-dp depends on these internally.
#   3. Change prefix and exec_prefix below as in 2, and set your
#      TCL_LIBRARY, TK_LIBRARY, and DP_LIBRARY libraries accordingly.

exec_prefix=/usr/local
prefix=/usr/local

mkdir $exec_prefix
mkdir $prefix
tar cf - lib include man | (cd $prefix; tar xvf -)
tar cf - bin | (cd $exec_prefix; tar xvf -)
mkdir $exec_prefix/lib
mv $prefix/lib/libdp3.4.a $exec_prefix/lib
mv $prefix/lib/libdp.a $exec_prefix/lib
ranlib $exec_prefix/lib/libdp3.4.a
