# Prerequisites:
# gawk
# fltk (for the GUI)
# openssl, gnutls, or cdsa (for SSL/TLS support)
# libjpeg (a local copy is available if you don't have it installed)
# zlib (")
# libpng (")
cd
test -f installed/htmldoc-1.8.27-source.tar.bz2 &&
mv installed/htmldoc-1.8.27-source.tar.bz2 .
test ! -f htmldoc-1.8.27-source.tar.bz2 &&
wget ftp://ftp.easysw.com/pub/htmldoc/1.8.27/htmldoc-1.8.27-source.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "htmldoc-*" -exec rm -r {} \;
tar xjvf ~/htmldoc-1.8.27-source.tar.bz2
cd htmldoc-1.8.27
test $UID = 0 && chown -R root:root .
# If OpenSSL is installed under a prefix covered by your PATH (/usr,
# /usr/local, etc.) then just run "./configure"
./configure \
--with-openssl-includes=/usr/local/ssl/include \
--with-openssl-libs=/usr/local/ssl/lib
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/htmldoc-*.tar.*
mv htmldoc-1.8.27-source.tar.bz2 installed/
# If you ever want to uninstall HTMLDOC, this should do it:
su
test -d /usr/share/htmldoc && rm -r /usr/share/htmldoc
test -d /usr/share/doc/htmldoc && rm -r /usr/share/doc/htmldoc
rm -f /usr/bin/htmldoc /usr/man/man1/htmldoc.1
exit
find ~/src -maxdepth 1 -type d -name "htmldoc-*" -exec rm -r {} \;
rm -f ~/installed/htmldoc-*.tar.*