#! /bin/sh
#=============================================================================
#
#	This Script builds the User's Manual
#
#=============================================================================

#=============================================================================
#
#	Files to be installed.
#
#=============================================================================

FILES="dev_index.html usr_index.html"

#=============================================================================
#
# Set up directory locations
#
#=============================================================================
if [ -z "$PARFLOW_SRC" ]
then
        PARFLOW_SRC=$PARFLOW_DIR
fi

#=============================================================================
#
# Determine the arch that we are compiling on 
#
#=============================================================================
. $PARFLOW_SRC/config/getarch

#=============================================================================
#
# Parse the user arguments
#
#=============================================================================
. $PARFLOW_SRC/config/parse_build_args.sh

#=============================================================================
#
# Do the install
# 
#=============================================================================
if [ "$PF_INSTALL_FLAG" ] 
then

	if [ ! -d $PARFLOW_HELP ]
	then
	        mkdir $PARFLOW_HELP
	fi

	for i in $FILES
	do
		/bin/rm -f $PARFLOW_HELP/$i
		cp $i $PARFLOW_HELP/$i
		chgrp parflow $PARFLOW_HELP/$i
		chmod 664 $PARFLOW_HELP/$i
	done
fi

