#! /bin/csh -f if (-d 'menulib' && \ -d 'maclib' && \ -d 'help' && \ -d 'bin' && \ -d 'user_templates') then set bayes_install = 'vnmr' else echo 'This script must run from "/vnmr"' exit endif if (! -f user_templates/dg/default/dg.conf.orig) then cp user_templates/dg/default/dg.conf user_templates/dg/default/dg.conf.orig else rm user_templates/dg/default/dg.conf cp user_templates/dg/default/dg.conf.orig user_templates/dg/default/dg.conf endif if (! -f user_templates/dg/default/dg.conf.imaging.orig) then cp user_templates/dg/default/dg.conf.imaging user_templates/dg/default/dg.conf.imaging.orig else rm user_templates/dg/default/dg.conf.imaging cp user_templates/dg/default/dg.conf.orig user_templates/dg/default/dg.conf.imaging endif if (-f /vnmr/user_templates/.login.orig) then cp /vnmr/user_templates/.login.orig /vnmr/user_templates/.login endif if (-f /vnmr/templates/layout/default/proc.xml.orig) then rm -f /vnmr/templates/layout/default/proc.xml cp /vnmr/templates/layout/default/proc.xml.orig /vnmr/templates/layout/default/proc.xml endif if (-f /vnmr/maclib/Bayes) then rm /vnmr/maclib/Bayes endif rm -f user_templates/dg/default/dg.Bayes if (-f templates/layout/default/Bayes.xml) then rm -f templates/layout/default/Bayes.xml endif if (-d templates/vnmrj/interface)then rm -f templates/vnmrj/interface/Bayes*.xml endif rm -f /tmp/938373654968 /bin/ls bin/bayes* >& /tmp/938373654968 set test = `cat /tmp/938373654968 | grep 'No match'` if ("$test" == '' ) then rm -f bin/bayes* endif rm -f /tmp/938373654968 /bin/ls bin/Bayes* >& /tmp/938373654968 set test = `cat /tmp/938373654968 | grep 'No match'` if ("$test" == '' ) then rm -f bin/Bayes* endif rm -f /tmp/938373654968 /bin/ls bin/Read* >& /tmp/938373654968 set test = `cat /tmp/938373654968 | grep 'No match'` if ("$test" == '' ) then rm -f bin/Read_* endif if (-f bin/libBayesEnterSpeclib.so) then chmod oug+w bin/libBayesEnterSpeclib.so rm -f bin/libBayesEnterSpeclib.so endif if (-f bin/libtestlib.so) then chmod oug+w bin/libtestlib.so rm -f bin/libtestlib.so endif if (-f bin/libBayesEnterSpeclib.so.1) then chmod oug+w bin/libBayesEnterSpeclib.so.1 rm -f bin/libBayesEnterSpeclib.so.1 endif if (-f maclib/_appmode.orig) then if (-f maclib/_appmode) then rm maclib/_appmode endif cp maclib/_appmode.orig maclib/_appmode endif if (-d maclib/maclib.bayes) then rm -r maclib/maclib.bayes endif if (-d /vnmr/online/online/BayesManual.pdf) then rm /vnmr/online/online/BayesManual.pdf endif if (-d /vnmr/acrobat/online/BayesManual.pdf) then rm /vnmr/acrobat/online/BayesManual.pdf endif if (-d menulib/menulib.bayes) then rm -r menulib/menulib.bayes endif if (-d help/help.bayes) then if (-f help/help.bayes/Bayes.Remote.Queue.File) then mv help/help.bayes/Bayes.Remote.Queue.File /tmp endif rm -r help/help.bayes endif if (-d user_templates/dg/baydispx) then rm -r user_templates/dg/baydispx endif if (-f user_templates/dg/default/dg.Bayes) then rm user_templates/dg/default/dg.Bayes endif rm -f /tmp/938373654968 /bin/ls user_templates/dg/Bayes* >& /tmp/938373654968 set test = `cat /tmp/938373654968 | grep 'No match'` if ("$test" == '' ) then rm -r user_templates/dg/Bayes* endif rm -f /tmp/938373654968 if (-d fidlib/Bayes.test.data) then rm -rf fidlib/Bayes.test.data endif if (-d fidlib/Bayes.Predefined.Spec) then rm -rf fidlib/Bayes.Predefined.Spec endif if (-d /vnmr/java) then set lib = '/vnmr/java' foreach f (libF77.so.4 libF77_mt.so.4 libM77.so.2 libsunmath.so.1) if (-f $lib/$f) then rm $lib/$f endif end endif if (-d /vnmr/jre/lib) then set lib = '/vnmr/jre/lib' foreach f (libF77.so.4 libF77_mt.so.4 libM77.so.2 libsunmath.so.1) if (-f $lib/$f) then rm $lib/$f endif endif endif if (-d /vnmr/bayes) then rm -r /vnmr/bayes endif exit