# @(#) $Id: cfg2html,v 4.13 2009-12-15 16:09:55 ralproth Exp $
##############################################################
# This is a wrapper for cfg2html(-hpux).sh (shortcut) and can be
# customized to fit your needs.
#

# fix by Gerrit Verdick, 15.12.2009
if [ "X$1" = "X-h" -o "X$1" = "X-?" ]
then
	echo "@(#) $Id: cfg2html,v 4.13 2009-12-15 16:09:55 ralproth Exp $"
	echo "This is a wrapper for cfg2html_$(uname) and adds additional options to the"
	echo "command line."
	exit 1
fi

case $(uname) in
HP-UX) 	cfg2html_hpux.sh $* -0 -o/tmp;;			## 31.03.2005
Linux)  cfg2html-linux $* -x -A;;			## 08.06.2006
*)	echo "$0: Unsupported operating system!"; exit 2 ;;
esac

RETCODE=$?

if [ $RETCODE -eq 0 ]
then
	# Customize this to fit your needs!
	######## mueller ############# #  16.03.2005, 09:49 modified by Ralph.Roth
	[ -x /usr/bin/xitd03wg ] && /usr/bin/xitd03wg /tmp/$(hostname)*{.err,.html,_xpinfo.txt}
	[ -x /usr/bin/xitd01wg ] && /usr/bin/xitd01wg /tmp/$(hostname)*{.err,.html,_xpinfo.txt}
else
	echo "Error ($0): Returncode=$RETCODE"
fi
