cd
test -f installed/bio2jack-0.9.tar.gz && mv installed/bio2jack-0.9.tar.gz .
test ! -f bio2jack-0.9.tar.gz &&
wget http://easynews.dl.sourceforge.net/sourceforge/bio2jack/\
bio2jack-0.9.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "bio2jack-*" -exec rm -r {} \;
tar xzvf ~/bio2jack-0.9.tar.gz
mv -f bio2jack bio2jack-0.9
cd bio2jack-0.9
test $UID = 0 && chown -R root:root .
./configure
make
su -c "make install ; ldconfig"
cd
mkdir -p -m 0700 installed
rm -f installed/bio2jack-*.tar.*
mv bio2jack-0.9.tar.gz installed/
# If you ever want to uninstall bio2jack, this should do it:
cd
su
test -d src/bio2jack-* && ( cd src/bio2jack-* ; make uninstall )
rm -f /usr/local/bin/bio2jack-config /usr/local/include/bio2jack.h \
/usr/local/lib/libbio2jack.*
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "bio2jack-*" -exec rm -r {} \;
rm -f ~/installed/bio2jack-*.tar.*