#!/bin/sh
#-----------------------------------------------------------------------------
# /var/install/bin/shfs-doc - shfs doc view
#
# Copyright (c) 2004 Frank Meyer <frank(at)eisfair(dot)org>
#
# Creation:     18.08.2004 jv
# Last Update:  $Id$
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#-----------------------------------------------------------------------------
 
packagename=shfs
docfile=/usr/share/doc/$packagename/$packagename.txt

# include eislib
# /var/install/include/eislib

clrhome
colecho "View $packagename services documentation" gn

echo
echo
echo "The documentation will be shown by the program '$PAGER'"
echo "You can get help by typing the key 'h', 'q' to quit."
echo
echo

if /var/install/bin/ask "Continue"
then
    if [ -f $docfile -a -s $docfile ]
    then
        export LESSCHARSET=latin1
        $PAGER $docfile
    else
        colecho "Could not find desired documentation!" br x br
        anykey
    fi
fi