#! /bin/sh # # h2bced_install # script for installation of h2bced pulse sequence, # vnmr macros and parameter files # for use with Varian Unity Inova Spectrometer # running with Vnmr 6.x # if [ ! -f h2bced_v1.tar ] then echo echo source file h2bced_v1.tar is missing echo installation not possible echo exit 1 fi if [ $HOME = '' ] then echo HOME directory of user $USER not defined echo please enter full path of vnmrsys location echo read home else home=$HOME fi pfad=$HOME/vnmrsys glolo=l if [ $USER = 'vnmr1' ] then echo echo "("g")"lobal "("all users")" or "("l")"ocal "("vnmr1")" installation "("g"/"l")" read glolo if [ $glolo = 'g' ] then pfad=/vnmr fi fi echo echo Installation for user $USER in $pfad : "("y"/"n")" read yesno echo case $yesno in y) echo Starting installation srcdir=`pwd` cd $pfad echo tar -xvf $srcdir/h2bced_v1.tar echo echo Compiling pulse sequence seqgen psglib/h2bced.c echo if [ $glolo != 'g' ] then cd .. else cp $HOME/vnmrsys/seqlib/h2bced /vnmr/seqlib fi cd $srcdir;; *) echo Installation canceled ! exit 1 esac echo please press return to continue read finish echo if [ -f DISCLAIMER ] then more DISCLAIMER fi echo echo Installation complete echo