1#!/bin/csh
2#
3#  A csh script to make OPT++.  This is a simple shell script
4#  which sets up the necessary symbolic links and runs the basic
5#  make and configure commands.
6#
7################################################################
8#
9#  Usage: make_script.csh configure_options
10################################################################
11
12setenv OPTPP $PWD
13echo $OPTPP
14set SQA = ../OPT++/bin
15echo $SQA
16unsetenv DAKOTA
17
18# configue with arguments passed in and make clean
19cd $OPTPP
20./configure $*
21make clean
22
23
24# Do a full make
25cd $OPTPP
26if (-e make_optpp.out) then
27  \rm -f make_optpp.out
28endif
29make >& $OPTPP/make_optpp.out
30$SQA/grep_error.perl make_optpp.out
31