#!/usr/bin/ksh # # This procedure moves the mshelltools executable into a directory # and creates the necessary links for each function. # Always takes one argument, the target installation # directory. For example, use: # # $ Install.ksh . # # if you want to make the necessary links in the # current directory... just ignore the cp error # message that results. if [[ $# -ne 1 ]] then print "$0: So where am I supposed to put them?" exit 1 fi if [[ ! -d $1 ]] then print "$0: Directory $1 doesn't exist." exit 1 fi if [[ ! -f mshelltools ]] then print "$0: Can't find mshelltools. Build it first." exit 1 fi for link in mdisplay medit menter mfileselect mlist mmenu mmessage mselect myesno do [[ -f $1/$link ]] && rm -f $1/$link done cp mshelltools "$1" for link in mdisplay medit menter mfileselect mlist mmenu mmessage mselect myesno do ln $1/mshelltools $1/$link done