#!/bin/sh # # install - Installation script for archwb. # # Written by: # Eugene Mah # MSc Graduate Student # Department of Radiology & Diagnostic Imaging # University of Alberta Hospitals # E-mail: eugene@raddi.uah.ualberta.ca # June, 1995 # # The installation script checks for the existence of $SITE/cmprss5. # If the program exists, then we assume that cmprss5.def and the # workbench menu item have already been installed. In this case # only arch and cmprss5 need to be copied to $SITE. If $SITE/cmprss5 # doesn't exist, then we need to install cmprss5.def and the workbench # menu also. # cp $SITE/wb.mnu $SITE/wb.mnu.orig # make a backup of the original wb.mnu if [ -f $SITE/cmprss5 ] # check if cmprss5 exists in $SITE already then echo "copying arch" cp arch $SITE/arch # copy archwb to $SITE (/prism/site) echo "copying cmprss5" cp cmprss5 $SITE/cmprss5 # copy cmprss interface to $SITE else echo "copying arch" cp arch $SITE/arch # copy archwb to $SITE (/prism/site) echo "copying cmprss5" cp cmprss5 $SITE/cmprss5 # copy cmprss interface to $SITE echo "Installing X defaults" cat cmprss5.def >> $SITE/display.rdf # copy X defaults to the defaults file echo "Enabling X defaults" xrdb -merge cmprss5.def echo "Adding workbench menu" cat cmprss5.mnu >> $SITE/wb.mnu fi echo "Installtion complete. Exit the current workbench and open a new one to effect changes."