#!/bin/sh
# Fri Dec 23 09:25:06 EST 2005 dtl
# Procedure to apply Cintpos/cintpos patches
# Unpack cintpospatches-2005-12-05.tgz (version label may differ)
# Change directory to ./cintpospatches-2005-12-05
# Run this script


CINTPOSDIR=..
HERE=$PWD

cd $CINTPOSDIR

# apply patches
for PATCH in $HERE/*diff
do
  echo applying $PATCH
  patch -p 1 < $PATCH
done

# the Cintpos unix install scripts
echo cp $HERE/INSTALL Cintpos/cintpos/INSTALL
cp $HERE/INSTALL Cintpos/cintpos/INSTALL
echo cp $HERE/VERSIONLABEL Cintpos/cintpos
cp $HERE/VERSIONLABEL Cintpos/cintpos

# the scripts for making and installing these patches
echo cp $HERE/install_cintpos_patches .
cp $HERE/install_cintpos_patches .
echo cp $HERE/mkcintposdiffs .
cp $HERE/mkcintposdiffs .

