aboutsummaryrefslogtreecommitdiffstats
path: root/.tcsh/ciaoinit.csh
diff options
context:
space:
mode:
Diffstat (limited to '.tcsh/ciaoinit.csh')
-rw-r--r--.tcsh/ciaoinit.csh21
1 files changed, 21 insertions, 0 deletions
diff --git a/.tcsh/ciaoinit.csh b/.tcsh/ciaoinit.csh
new file mode 100644
index 0000000..3079cdc
--- /dev/null
+++ b/.tcsh/ciaoinit.csh
@@ -0,0 +1,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
+