aboutsummaryrefslogtreecommitdiffstats
path: root/.tcsh/ciaoinit.csh
blob: 3079cdc7bbc2156b7cea9a76c8aaa0342b1dd0fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/csh -
#
# CIAO settings
#
unset printexitvalue

set HEA_STATE="`echo $PATH | tr ':' '\n' | grep 'heasoft'`"
set CIAO_STATE="`echo $PATH | tr ':' '\n' | grep 'ciao'`"
if ( "x${HEA_STATE}" == "x" ) then
    heainit
endif
if ( "x${CIAO_STATE}" == "x" ) then
    source $CIAO_PATH/bin/ciao.csh
else
    source $CIAO_PATH/bin/ciao.csh -o
endif
unset HEA_STATE
unset CIAO_STATE

exit 0