#!/bin/sh
DATADIR=/usr/local/share/ictester
VER=0.0.6

if [ "$1" == "" ]
then
 echo "Usage: $0 <full path of ictdata.tgz>"
 echo "This script upgrades IC Tester database files."
 echo "Distributed under program version $VER."
 echo "All rights reserved (C) Silvio Klaic 2001,2002."
 echo "This program is under GPL licence."
 exit 0
fi

if [ -d $DATADIR ]
then
 if [ -f $1 ]
 then
  echo "Please wait, installing data..."
  tar x -C $DATADIR -vzf $1
  echo "Installed in "$DATADIR
 else
  echo "Can't find database file:"
  echo $1
 fi
else
 echo "Can't find instalation directory at:"
 echo $DATADIR
fi
