# HJSplit for Linux
# =================
# This will install the Kylix libraries, required by HJSplit, and
# HJSplit itself
# HJSplit 2.3 for Linux was released on November 26, 2003
# You may want to consider an actively developed alternative like LX Split
# Kylix libraries 3.0-2
# =====================
cd
test -f installed/kylixlibs3-borqt-3.0-2.tar.gz &&
mv installed/kylixlibs3-borqt-3.0-2.tar.gz .
test ! -f kylixlibs3-borqt-3.0-2.tar.gz &&
wget http://downloads.sf.net/kylixlibs/kylixlibs3-borqt-3.0-2.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "kylixlibs3-borqt-*" -exec rm -r {} \;
test -d ./kylixlibs3-borqt && rm -r ./kylixlibs3-borqt
tar xzvf ~/kylixlibs3-borqt-3.0-2.tar.gz
mv kylixlibs3-borqt kylixlibs3-borqt-3.0-2
cd kylixlibs3-borqt-3.0-2
test $UID = 0 && chown -R root:root .
# I don't like to use the enclosed install.sh, so I install it differently.
# If you would rather use that, look in it to see what it's going to do,
# then run it as root if you think it looks OK:
# su -c "./install.sh"
# If you ever want to uninstall the Kylix libraries and HJSplit,
# this should do it:
cd
su
test -d src/hjsplitlx && rm -r src/hjsplitlx
( cd /usr/local/bin ; rm -f HJSplitLX hjsplitlx )
rm -f /usr/local/lib/libborqt-6.9.0-qt2.3.so \
/usr/lib/libborqt-6.9-qt2.3.so
ldconfig
exit
rm -f ~/installed/hjsplitlx.tar.gz ~/installed/kylixlibs3-borqt-*.tar.*