#! /bin/csh -f

if ( $#argv != 1 ) then
echo " "
echo " "
echo "this script requires one input when running"
echo " "
echo "options are: "
echo " "
echo "DEC"
echo "LINUX"
echo "NORMAL"
echo " "
echo "rerun script as "
echo "setup DEC "
echo "or "
echo "setup LINUX "
echo "or "
echo "setup NORMAL "
echo " "
echo " "
exit
endif


### set up iplib/w3lib stuff ##########################################

cd libraries

if ( $1 == "DEC" || $1 == "LINUX" ) then
cp  make_ip_w3_LE make_ip_w3
endif

if ( $1 == "NORMAL" ) then
cp make_ip_w3_BE make_ip_w3
endif

### install the correct binary files ##########################

cd ../eta/bin

./installbin $1

### set up the proper version of copygb #######################

cd ../../copygb

if ( $1 == "DEC" || $1 == "LINUX" ) then
cp copygb.f_littleend copygb.f
endif

if ( $1 == "NORMAL" ) then
cp copygb.f_bigend copygb.f
endif

##############################################################
