#!/bin/sh

EXTRARPMSDIR=`pwd`; export EXTRARPMSDIR;

GRACEDIR=`pwd`;export GRACEDIR;
ls $GRACEDIR/grace*.gz > $GRACEDIR/gracelist;

env | grep -i grace;

cd /usr/local;
mkdir /usr/local/grace/lib;
mkdir /usr/local/grace/include;

echo `pwd`;
for item in `cat $GRACEDIR/gracelist`
do 

#/usr/bin/gunzip -dc $item | /bin/tar xvf -
/bin/tar zxvf $item
done
ln -s /usr/local/grace/bin/xmgrace /usr/local/bin/xmgrace

cd $EXTRARPMSDIR;

exit;
