Linux HOWTOs

About | Home | Search


HOWTO: webcpp
Description: Converts source code into syntax highlighted HTML
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# Web C Plus Plus 0.8.4
# =====================
# Prerequisites:
# gawk
# grep

cd
test -f installed/webcpp-0.8.4-src.tar.gz &&
 mv installed/webcpp-0.8.4-src.tar.gz .
test ! -f webcpp-0.8.4-src.tar.gz &&
 wget http://easynews.dl.sourceforge.net/sourceforge/webcpp/\
webcpp-0.8.4-src.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "webcpp-*-src" -exec rm -r {} \;
tar xzvf ~/webcpp-0.8.4-src.tar.gz
cd webcpp-0.8.4-src
test $UID = 0 && chown -R root:root .
./configure
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/webcpp-*-src.tar.*
mv webcpp-0.8.4-src.tar.gz installed/


# If you ever want to uninstall webcpp, this should do it:
cd
su
test -d src/webcpp-* && ( cd src/webcpp-* ; make uninstall )
( cd /usr/local/bin ; rm -f web++ webcpp )
test -d /usr/local/share/webcpp && rm -r /usr/local/share/webcpp
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "webcpp-*" -exec rm -r {} \;
rm -f ~/installed/webcpp-*.tar.*

Back to the list


Last updated: Wed, 29 Apr 2020 22:04:50 -0400
Jason Englander <jason at englanders dot us>