#/bin/sh
if [ ! -f squidview ] ; then
  echo "squidview binary program not found"
  exit 1
fi
strip squidview
cp squidview /usr/local/bin
if [ ! $? -eq 0 ] ; then
  echo "Can't install binary"
  exit 1
fi
svdocdir=/usr/share/doc/squidview
if [ ! -d $svdocdir ] ; then
  mkdir $svdocdir
  if [ ! $? -eq 0 ] ; then
    echo "Can't make documentation dir"
    exit 1
  fi
fi
cp README users words aliases changelog $svdocdir
if [ ! $? -eq 0 ] ; then
  echo "Can't copy documentation"
  exit 1
fi
exit 0
