set HERE=`pwd` source $HERE/triumf/setup.com set LOCAL = /home/e614/e614soft set TWIST = /home/e614/e614soft setenv TRIUMF_ROOT ${LOCAL}/triumf setenv E614_ROOT ${TWIST}/triumf setenv E614_CAL ${TWIST} setenv ROOTSYS /twist/local/root setenv CERN_LIBRARY /cern/2000/lib setenv CERN_LIBRARY_ABSOFT /twist/local/cern_absoft/2000a/lib setenv CVS_RSH ssh setenv CVSROOT /home/e614mgr/cvs if ( `echo $PATH | grep -c "root/bin" ` ) then else setenv GPLOT_DIR ${TRIUMF_ROOT}/gplot setenv BRU_COMMANDS ${TRIUMF_ROOT}/bru setenv MOFIA_COMMANDS ${TRIUMF_ROOT}/mofia setenv GEANT_COMMANDS ${TRIUMF_ROOT}/geant setenv CFM_COMMANDS ${TRIUMF_ROOT}/cfm setenv YBOS_COMMANDS ${TRIUMF_ROOT}/ybos alias setup 'set setup_args=(!:*); eval source `echo \${!:1_COMMANDS}|tr \[a-z\] \[A-Z\]`/setup.com; unset setup_args' alias unsetup 'eval source `echo \${!:1_COMMANDS}|tr \[a-z\] \[A-Z\]`/unsetup.com' alias mlib "set mlib_args=(!:*); source ${TRIUMF_ROOT}/mlib.csh; unset mlib_args" unset LOCAL setenv MOFIA_COMMANDS $HERE/triumf/mofia setup mofia devel source $MOFIA_COMMANDS/setup.com set nargs = $#setup_args if ( $nargs > 2 ) then if ( $nargs > 1 ) then set vers = $setup_args[2] else if ( ! -e $MOFIA_COMMANDS/${vers} ) then echo Setting up MOFIA $vers Setting up MOFIA devel setenv MOFIA_ROOT ${MOFIA_COMMANDS}/${vers} if ( $vers == "1.0" || $vers == "1.5" || $vers == "1.6" ) then setenv MOFIA_BIN ${MOFIA_ROOT}/bin setenv MOFIA_DEBUG ${MOFIA_ROOT}/debug setenv MOFIA_DOC ${MOFIA_ROOT}/help setenv MOFIA_HELP ${MOFIA_ROOT}/help setenv MOFIA_SOURCE ${MOFIA_ROOT}/source setenv MOFIA_UPDATE ${MOFIA_ROOT}/update endif if ( $?DEBUG ) then setenv MOFIA_LIBDIR ${MOFIA_ROOT}/lib endif setenv MOFIA_DUMMY ${MOFIA_SOURCE}/dummy setenv MOFIA_INCLUDE ${MOFIA_SOURCE}/include setenv MOFIA_KCM ${MOFIA_SOURCE}/kcm setenv MOFIA_MAIN ${MOFIA_SOURCE}/main setenv MOFIA_MAINF90 ${MOFIA_SOURCE}/mainf90 setenv MOFIA_MIDAS ${MOFIA_SOURCE}/midas setenv MOFIA_MODULES ${MOFIA_SOURCE}/modules setenv MOFIA_OLD ${MOFIA_SOURCE}/old setenv MOFIA_PHOTO ${MOFIA_SOURCE}/photo setenv MOFIA_QOD ${MOFIA_SOURCE}/qod setenv MOFIA_USER ${MOFIA_SOURCE}/user cat ${MOFIA_UPDATE}/note.txt -------------------------------------------------------------------------------  MOFIA devel  1999-Oct-13 Initial f90 version 2000-Mar-30 See $MOFIA_UPDATE/note1.txt for changes. 2000-Sep-05 Version 2.0.1. See $MOFIA_UPDATE/note2.txt for changes. 2001-Apr-03 Version 2.1. See $MOFIA_UPDATE/note3.txt for changes. 2002-Feb-28 Version 2.2. See $MOFIA_UPDATE/note4.txt for changes. 2002-Mar-27 Version 2.2.1 See $MOFIA_UPDATE/note5.txt for changes. 2002-Apr-03 Version 2.2.2 See $MOFIA_UPDATE/note6.txt for changes. ------------------------------------------------------------------------------- alias mnew more ${MOFIA_UPDATE}/note.txt alias mnews more ${MOFIA_UPDATE}/notes_all.txt echo Setting up packages for MOFIA $vers Setting up packages for MOFIA devel if ( $vers == "1.0" ) then new: setup cfm 2.2 source $CFM_COMMANDS/setup.com set nargs = $#setup_args if ( $nargs > 2 ) then if ( $nargs > 1 ) then set vers = $setup_args[2] else if ( ! -e $CFM_COMMANDS/${vers} ) then echo Setting up CFM $vers Setting up CFM 2.2 setenv CFM_ROOT ${CFM_COMMANDS}/${vers} if ( ${vers} == "2.2" || ${vers} == "new" ) then setenv CFM_DB ${E614_CAL}/cfm/db_noswap setenv CAL_DB ${E614_CAL}/caldb_ascii else setenv CFM_DOC ${CFM_ROOT}/doc setenv CFM_LIBRARY ${CFM_ROOT}/lib setenv CFM_LOG ${E614_CAL}/cfm/log setenv CFM_MAIN ${CFM_ROOT}/main setenv CFM_SOURCE ${CFM_ROOT}/source setenv CFMLOG ${CFM_LOG}/cfm.log setenv CFMREADLOCK ${CFM_DB}/cfm.readlock setenv CFMWRITELOCK ${CFM_DB}/cfm.writelock setenv CFMREC ${CFM_DB}/cfm.record alias cfm ${CFM_MAIN}/cfm.exe setup bru 1.1 source $BRU_COMMANDS/setup.com set nargs = $#setup_args if ( $nargs > 2 ) then if ( $nargs > 1 ) then set vers = $setup_args[2] else if ( ! -e $BRU_COMMANDS/${vers} ) then setenv BRU_LIBRARY $BRU_COMMANDS/${vers} setup ybos 4.1 source $YBOS_COMMANDS/setup.com set P1 ; set P2 set nargs = $#setup_args if ( $nargs < 2 ) goto no_more set P1 = $setup_args[2] if ( $P1 == "PRODUCTION" ) set P1 = "production" if ( $nargs < 3 ) goto no_more unset nargs if ( $P1 == "" ) set P1 = "production" set YBOS_Version = $P1 set Use_Root = $YBOS_COMMANDS setenv YBOS_ROOT ${Use_Root}/${YBOS_Version} setenv YBOS_DOC ${Use_Root}/${YBOS_Version}/doc setenv YBOS_LIBRARY ${Use_Root}/${YBOS_Version}/library setenv YBOS_TEST ${Use_Root}/${YBOS_Version}/test setenv YBOS_SOURCE ${Use_Root}/${YBOS_Version}/source Exit: unset YBOS_Version unset Use_Root unset P1 ; unset P2 unsetenv IO_DIR goto end mlib f95 debug set os_type = `uname -a | awk '{print $1}'` set VERBOSE unsetenv MOFIA_LIBDIR setenv FFLAGS " " unsetenv CFLAGS unsetenv DFLAGS unsetenv MAKESTD unsetenv CERN_LIBDIR unsetenv CERN_INCLUDE unsetenv F90FLAGS unsetenv I90FLAGS unsetenv LD_COMP setenv CXX " " setenv CXXFLAGS " " setenv ROOTCFLAGS " " setenv ROOTGLIBS " " setenv LIB_SPECIAL " " setenv SYNTAX "syntax" if ( $os_type == IRIX64 || $os_type == IRIX ) then setenv SYNTAX "syntax: mlib [-h] [debug] [f90] [f95] [quiet] [[-]query]" endif foreach arg ( $mlib_args ) if ( $arg == -h ) then end if ( $arg == -h ) then end unsetenv SYNTAX foreach arg ( $mlib_args ) if ( $arg == -query ) goto query end if ( $arg == -query ) goto query end if ( `echo $mlib_args | grep -c quiet` ) then if ( `echo $mlib_args | grep -c debug` ) then setenv DEBUG setenv DEBUG_STATUS ON else unset F90 if ( `echo $mlib_args | grep -c f90` ) then unset F95 if ( `echo $mlib_args | grep -c f95` ) then set F95 endif setenv CERN_INCLUDE $CERN_LIBRARY/../include if ( $?MOFIA_ROOT ) then setenv IFLAGS "-I. -I$MOFIA_INCLUDE -I$YBOS_LIBRARY -I$CFM_SOURCE -I$BRU_LIBRARY -I$CERN_INCLUDE -I$CERN_INCLUDE/geant321" else if ( $os_type == IRIX64 || $os_type == IRIX ) then if ( $os_type == Linux ) then if ( $?ROOTSYS ) then setenv ROOTCFLAGS " -I$ROOTSYS/include" setenv ROOTGLIBS "-L/usr/X11R6/lib -X -rpath -X $ROOTSYS/lib -L$ROOTSYS/lib -lNew -lCore -lCint -lGraf -lGraf3d -lGpad -lTree -lTreeViewer -lRint -lPostscript -lMatrix -lPhysics -lGui -lm -ldl -lHist -lHtml -lMinuit -lProof -lTree -lGX11 -lX3d -lXpm -lX11" endif if ( $?F90 ) then if ( $?F95 ) then if ( $?DEBUG ) then if ( $?MOFIA_ROOT ) setenv MOFIA_LIBDIR $MOFIA_ROOT/lib-debug setenv F90FLAGS "-g -s -B19 -B100 -m1 -YEXT_SFX="_" -YEXT_NAMES=LCS -YCOM_NAMES=LCS -YCFRL=1 -Rb -Rc -Rs -Rp -M878" setenv CFLAGS "-g " setenv CXXFLAGS "-g -Wall -fno-rtti -fno-exceptions -fPIC $ROOTCFLAGS" setenv LIB_SUFFIX _absoft_dbg else setenv CXX "g++" setenv I90FLAGS "$IFLAGS -p . -p $MOFIA_MAINF90" setenv MAKESTD $TRIUMF_ROOT/make.std.absoft setenv DFLAGS "-DUNIX -Dunix -DLINUX -Dlinux -Df90" setenv LD_COMP "$ABSOFT/bin/f95" ABSOFT: Undefined variable.