#!/bin/bash

# Author: Eric Moore<eric.moore@lsi.com>
# Date: January 7, 2008
# Name: update_mpi_headers
# Description: A script for updating the mpi headers in clear case project view.


# mpi headers location on the filesystem:
# source view
SOURCE_VIEW=../../../MPT2SAS_HDR/sas2fw/mpi
# destination view
DEST_VIEW=mpi

if [ ! -d ${SOURCE_VIEW} ]; then
	echo ERROR: source view not found !!!
	exit 1;

fi;

if [ ! -d ${DEST_VIEW} ]; then
	echo ERROR: destination view not found !!
	exit 1;
fi;

echo "A script for updating the mpi headers in the clear case project.";
rm -f ${DEST_VIEW}/*
cp -fR ${SOURCE_VIEW}/* ${DEST_VIEW}/
cd ${DEST_VIEW}
dos2unix -q *
exit 0
