#!/bin/sh ######################################################################## # # This is a script file. Run it, and it will install the main f/Calc # program in /usr/local/bin, and the rest of the files in # /usr/local/lib/fcalc. If you wish to change these directories, # edit the variables below. # ######################################################################## ## USER-CONFIGURABLE stuff BINDIR=/usr/X11R6/bin LIBDIR=/usr/X11R6/lib/fcalc INSTALL=nopath # The script will usually find this on its own. ######################################################################## # No user-serviceable parts below. Failure to heed this warning will # void this product's warranty. ;-> ######################################################################## echo -n "Checking for install(1): " if [ ! -x $INSTALL ] ; then INSTALL=`which install` if [ ! -x $INSTALL ] ; then for i in /usr/bin /bin /usr/ucb /usr/local/bin ; do if [ -x $i/install ] ; then INSTALL=$i/install break fi done fi if [ ! -x $INSTALL ] ; then echo echo "Could not find your \"install\" command. Please edit the $0 script." exit fi fi echo $INSTALL echo Creating directories... $INSTALL -d -m 755 $BINDIR $INSTALL -d -m 755 $LIBDIR $INSTALL -d -m 755 $LIBDIR/help echo Installing f/Calc program into $BINDIR sed -e "s%SETUPLIBDIR%$LIBDIR%" < fcalc > fcalc2 $INSTALL -m 755 fcalc2 $BINDIR/fcalc rm fcalc2 echo Installing f/Calc support files into $LIBDIR $INSTALL -m 644 *.tcl $LIBDIR $INSTALL -m 644 help/*.htm help/*.gif $LIBDIR/help echo Done!