#!/bin/sh
DATADIR=/usr/local/share/ictester
VER=0.0.6
HELP=$DATADIR/icthelp.tgz

if [ -f $HELP ]
then
 echo "             .--------------------------------."
 echo "             |      Ictester help program     |"
 echo "             \`--------------------------------'"
 echo ""
 echo "Distributed under program version $VER."
 echo "All rights reserved (C) Silvio Klaic 2001, 2002."
 echo "This program is under GPL licence, see copying for detail."
 echo "Choose number near section which you want to see:"
 echo ""
 echo "1 - Database section, construction of analyze test files and database."
 echo "2 - Program section, detail explanation of program options."
 echo "3 - Test IC Tester device, description of testing IC tester device."
 echo "4 - Test Diode/OCR addon device, desription of testing Diode/OCR addon." 
 echo "5 - Copying, see GPL licence for this program."
 echo "Q - Quit this help program."
 echo -e "\nType choice:\c"
 read OPT
 case $OPT in
  1) # show database section
   gzip -dc $HELP | tar xOf - database | more;
   ;;
  2) # show program section
   gzip -dc $HELP | tar xOf - program | more;
   ;;
  3) # show test ict
   gzip -dc $HELP | tar xOf - testict | more;
   ;;
  4) # show test ocr
   gzip -dc $HELP | tar xOf - testocr | more;
   ;;
  5) # show copying
   more $DATADIR/COPYING;
   ;;
 esac
else
 echo "No help file $HELP!"
fi
