#!/bin/sh
#
# Convert ../de/etc/* files into de.hlp
# This script will only need running if you modify the contents of any of the
# help files in ../de/etc.
#
(
echo "**** version"
echo "DOS-DE (an X.500 DUA for MS-DOS based personal computers)"
echo "Version 1.0 - IC-1"
echo "Copyright (C) 1993 "
echo ""
echo "The major part of the DE computer program was developed at"
echo "Universtiy College London with funding from the COSINE PARADISE"
echo "project.  The copyright for this part of the software belongs"
echo "jointly to RARE (Reseaux Associes pour la Recherche Europeene)"
echo "and the CEC (Commission of the European Communities).  The parts"
echo "of this version of the DE computer program which enable DE to run"
echo "over LDAP (Lightweight Directory Access Protocol), using routines"
echo "written at the University of Michigan, were written by Andy Powell"
echo "and are the copyright of the University of Bath."
for file in ../de/etc/*; do
    str=`echo $file | sed 's/^\.\.\/de\/etc\/de//'`
    case $str in
    tailor|termtypes|byebye|byebyecosine|screen)
	;;
    *)
	echo "**** $str"
	cat $file | sed '
s/Ctrl-C/ESC   /g
s/.ontrol-C/ESC      /g
s/BYEBYE        Program exit screen - contains helpdesk information/VERSION       DOS-DE version notice/
s/^BYEBYE /VERSION/
/^SCREEN   /d
/^SETTINGS   /d
/^TERMTYPES   /d
s/SCREEN/      /
s/SETTINGS/        /
s/TERMTYPES/         /
s/	/        /g
'
	;;
    esac
done
) > de.hlp
