# lxSplit 0.2.2
# =============
# lxSplit is compatible with HJSplit
cd
test -f installed/lxsplit-0.2.2.tar.gz &&
mv installed/lxsplit-0.2.2.tar.gz .
test ! -f lxsplit-0.2.2.tar.gz &&
wget http://downloads.sf.net/lxsplit/lxsplit-0.2.2.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "lxsplit-*" -exec rm -r {} \;
tar xzvf ~/lxsplit-0.2.2.tar.gz
cd lxsplit-0.2.2
test $UID = 0 && chown -R root:root .
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/lxsplit-*.tar.*
mv lxsplit-0.2.2.tar.gz installed/
# If you ever want to uninstall lxSplit, this should do it:
cd
su
test -d src/lxsplit-* && ( cd src/lxsplit-* ; make uninstall )
rm -f /usr/local/bin/lxsplit
exit
find ~/src -maxdepth 1 -type d -name "lxsplit-*" -exec rm -r {} \;
rm -f ~/installed/lxsplit-*.tar.*