cd
test -f installed/ots-0.4.2.tar.gz && mv installed/ots-0.4.2.tar.gz .
test ! -f ots-0.4.2.tar.gz &&
wget http://download.sf.net/libots/ots-0.4.2.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "ots-*" -exec rm -r {} \;
tar xzvf ~/ots-0.4.2.tar.gz
cd ots-0.4.2
test $UID = 0 && chown -R root:root .
./configure
## If make fails with an error like this:
# /usr/bin/openjade:../ots-docs.sgml:41:6:E: end tag for "PART" which is not
# finished
## Run 'make -i' in the doc subdirectory to ignore the error. You'll
## probably be missing some docs, but that's it.
( cd doc ; make -i )
make
# Become root to install it
su
rm -f /usr/local/lib/libots-1.*
make install
ldconfig