#!/bin/sh
#
# Created `Mon Mar 11 10:06:04 MET 1996' By `papanik'.
# Copyright (c) 1995 By The LiDIA Group -- All Rights Reserved.
# Author --  Thomas Papanikolaou (TP)
#

echo " "
echo "You  will  be now asked for the installation directory for LiDIA."
echo "To use the [default location], just type <return>."
echo " "

YES="y"
ABORT="n"
PREFIX="/usr/local"

while test $ABORT != $YES ;
do 
  echo -n "Installation directory ? [$PREFIX] : "
  read ANSWER
  if test "$ANSWER" != "" -a "$ANSWER" != $YES ; then
    PREFIX=$ANSWER
  fi
  if test -d $PREFIX ; then
      ABORT=$YES
  else
    echo "$PREFIX is not a directory!" 
    PREFIX="/usr/local"
  fi
done
echo $PREFIX > ./DESTDIR
