#!/bin/csh -f
#
# A script to install benchmark stuff
#
# In oder to successfully complete this script, the tape-file must have
# been unloaded.
#

echo "Creating CSCSUITE_2/ ..."
zcat CSCSUITE_2.tar.Z | tar xf -  # Unloads CSCSUITE_2
echo "Creating CSCSUITE_2/lib ..."
(cd CSCSUITE_2; /bin/rm -f lib; ln -s ../lib .; cd ..)

echo "Creating PARALLEL/DM ..."
zcat PARALLEL_DM.tar.Z | tar xf - # Unloads PARALLEL/DM
echo "Creating PARALLEL/DM/lib ..."
(cd PARALLEL/DM; /bin/rm -f lib; ln -s ../../lib .; cd ../..)

echo "Creating MISC/ ..."
zcat MISC.tar.Z | tar xf -        # Unloads MISC
(cd MISC/KERNELS; /bin/rm -f lib; ln -s ../../lib .; cd ../..)

echo "Creating PARALLEL/CSCSUITE_2 ..."
cd PARALLEL
zcat ../CSCSUITE_2.tar.Z | tar xf -
cd ..
/bin/cp tmp/* PARALLEL/CSCSUITE_2
echo "Creating PARALLEL/CSCSUITE_2/lib ..."
(cd PARALLEL/CSCSUITE_2; /bin/rm -f lib; ln -s ../../lib .; cd ../..)

/bin/rm -f CSCSUITE_2.tar.Z PARALLEL_DM.tar.Z MISC.tar.Z

chmod u-x install

ls -alF

echo "Installation completed."

exit 0

