# xmltoman 0.3
# ============
# I have no idea where else to get this, so we get the source from
# Debian's FTP server. The home page used to be
# http://masqmail.cx/xmltoman/, but that domain no longer exists.
# Included are the xmltoman and xmlmantohtml scripts, which are
# Perl scripts that use XML::Parser.
# Make sure the XML::Parser module is installed/updated:
su -c "perl -MCPAN -e shell"
install Bundle::CPAN
install XML::Parser
exit
cd
test -f installed/xmltoman_0.3.orig.tar.gz &&
mv installed/xmltoman_0.3.orig.tar.gz .
test ! -f xmltoman_0.3.orig.tar.gz &&
wget http://ftp.debian.org/debian/pool/main/x/xmltoman/\
xmltoman_0.3.orig.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "xmltoman-*" -exec rm -r {} \;
tar xzvf ~/xmltoman_0.3.orig.tar.gz
cd xmltoman-0.3
test $UID = 0 && chown -R root:root .
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/xmltoman-*.tar.*
mv xmltoman_0.3.orig.tar.gz installed/
# If you ever want to uninstall xmltoman, this should do it:
cd
su
( cd /usr/local/bin ; rm -f xmltoman xmlmantohtml )
test -d /usr/local/share/xmltoman && rm -r /usr/local/share/xmltoman
exit
find ~/src -maxdepth 1 -type d -name "xmltoman-*" -exec rm -r {} \;
rm -f ~/installed/xmltoman_*.tar.*