1 |
#!/bin/csh |
2 |
# |
3 |
# $Header: $ |
4 |
# $Name: $ |
5 |
|
6 |
########################################################## |
7 |
# This file is part of OpenAD released under the LGPL. # |
8 |
# The full COPYRIGHT notice can be found in the top # |
9 |
# level directory of the OpenAD distribution # |
10 |
########################################################## |
11 |
|
12 |
# this set some env. vars such as "OPENADROOT" |
13 |
# (needed to generate and use Makefile) |
14 |
|
15 |
#./tools/setenv/setenv.py --shell=csh > setenv.tmp~ |
16 |
set tmp_file="/tmp/setenv_OpenAD.$$" |
17 |
#echo $tmp_file |
18 |
/scratch/heimbach/OpenAD/tools/setenv/setenv.py --shell=csh > $tmp_file |
19 |
if ( $status != 0 ) then |
20 |
echo "Error executing: ./tools/setenv/setenv.py --shell=csh > $tmp_file" |
21 |
else |
22 |
source $tmp_file |
23 |
if ( $status != 0 ) then |
24 |
echo "Error executing: source $tmp_file" |
25 |
else |
26 |
rm -f $tmp_file |
27 |
endif |
28 |
endif |