1 |
jmc |
1.1 |
#! /usr/bin/env bash |
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=sh > setenv.tmp~ |
16 |
|
|
tmp_file="/tmp/setenv_OpenAD.$$" |
17 |
|
|
#echo $tmp_file |
18 |
|
|
/scratch/heimbach/OpenAD/tools/setenv/setenv.py --shell=sh > $tmp_file |
19 |
|
|
if [ $? -ne 0 ] |
20 |
|
|
then |
21 |
|
|
echo "Error executing ./tools/setenv/setenv.py --shell=sh > $tmp_file" |
22 |
|
|
else |
23 |
|
|
source $tmp_file |
24 |
|
|
if [ $? -ne 0 ] |
25 |
|
|
then |
26 |
|
|
echo "Error executing source $tmp_file" |
27 |
|
|
else |
28 |
|
|
rm -f $tmp_file |
29 |
|
|
fi |
30 |
|
|
fi |