Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/indem/dba/scripts/
Upload File :
Current File : /var/www/html/mmishra/indem/dba/scripts/updatedocs.sh

#!/bin/sh
#
# $Id: updatedocs.sh,v 1.2 2003/06/22 20:21:11 robbat2 Exp $
#
# Script to build plain text documentation from the HTML version
#
SRC=Documentation.html
DST=Documentation.txt
OPTIONS="--dont_wrap_pre --nolist --dump"
CMD=lynx

TMPDOCDIRS=".. . `pwd` `pwd`/`dirname ${0}`/.. `dirname ${0}`/.."
for dir in ${TMPDOCDIRS}; do
    [ -e "${dir}/${SRC}" ] && DOCDIR="${dir}"
    [ -n "${DOCDIR}" ] && break
done
unset TMPDOCDIRS
if [ -z "${DOCDIR}" ]; then
    echo 'Unable to locate documentation!'
    exit -1
fi

SRC="${DOCDIR}/${SRC}"
DST="${DOCDIR}/${DST}"

${CMD} ${OPTIONS} "${SRC}" > "${DST}"