cd
test -f installed/source-highlight-2.3.tar.gz &&
mv installed/source-highlight-2.3.tar.gz .
test ! -f source-highlight-2.3.tar.gz &&
wget http://ftp.gnu.org/gnu/src-highlite/source-highlight-2.3.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "source-highlight-*" -exec rm -r {} \;
tar xzvf ~/source-highlight-2.3.tar.gz
cd source-highlight-2.3
test $UID = 0 && chown -R root:root .
./configure
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/source-highlight-*.tar.*
mv source-highlight-2.3.tar.gz installed/
# If you ever want to uninstall source-highlight, this should do it:
cd
su
test -d src/source-highlight-* &&
( cd src/source-highlight-* ; make uninstall )
( cd /usr/local/bin ; rm -f cpp2html java2html source-highlight \
src-hilite-lesspipe.sh )
test -d /usr/local/share/source-highlight &&
rm -r /usr/local/share/source-highlight
test -d /usr/local/share/doc/source-highlight &&
rm -r /usr/local/share/doc/source-highlight
rm -f /usr/local/info/source-highlight.info \
/usr/local/man/man1/source-highlight.1
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "source-highlight-*" -exec rm -r {} \;
rm -f ~/installed/source-highlight-*.tar.*