#!/bin/bash

#
# This is the script that I used to checkin to Trilinos on
# trilinos-test2.sandia.gov.  You can copy this script and adapt it to
# your own use on this machine.
#
# NOTE: You need to add '/home/trilinos/bin' to your path before you
# run this script.
#

EXTRA_ARGS=$@

#
# Set up basic environment options
#

echo "-DBUILD_SHARED_LIBS:BOOL=ON" > COMMON.config

echo "-DMPI_BASE_DIR:PATH=/home/trilinos/bin" > MPI_DEBUG.config

echo "
-DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++
-DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc
-DCMAKE_Fortran_COMPILER:FILEPATH=/usr/bin/f77
" > SERIAL_RELEASE.config


#
# Run the checkin-test.py script with more arguments
#

../../Trilinos/checkin-test.py \
--make-options="-j6" \
--ctest-options="-j6" \
--ctest-timeout=180 \
--commit-msg-header-file=checkin_message \
$EXTRA_ARGS  
