#!/bin/sh

# $Id: installCxite,v 1.9 2014/01/20 09:45:50 svein Exp $

if test "${quiet:-0}" -eq 0
then
  echo "Editing cxite." 1>&2
fi

cp cxite.sh cxite.tmpl

awk -f $edcxite -F= hosttype=$XITE_HOSTTYPE \
  inc=$XITE_INC_DEST lib=$XITE_LIB_DEST xinc=$X_INC_DIR \
  xlib=$X_LIB_DIR matinc=$MATLAB_INC matlib=$MATLAB_LIB \
  tiffinc=$TIFF_INC_DIR tifflib=$TIFF_LIB_DIR regex=$regex dirent=$dirent \
  cxite.tmpl > cxite.sh

if test $? -ne 0
then
  echo "ERROR:" 1>&2
  echo "Editing cxite failed." 1>&2
  echo "" 1>&2
  $paramMessage 1>&2

  exit 1
fi

exit 0
