#! /bin/csh
#---------------------------------------------------------------------------
# install_corona: Compile and install corona model.
#
# Usage: ./install_corona
#---------------------------------------------------------------------------

# Set environment variables
source ./set.sh make

# Go into the source directory.
pushd source > /dev/null

# Compile and install each tool.
foreach tooldir (*.dir)
  set tool=`echo $tooldir | sed 's/.dir$//'`
  echo ""
  echo "### ----------------------------------------------------"
  echo "### Making and installing tool $tool ..."
  echo "### ----------------------------------------------------"
  pushd $tooldir > /dev/null
  make new
  make install
  popd > /dev/null
end

# Return to the original directory.
popd > /dev/null
