cd
test -f installed/most-4.10.2.tar.bz2 && mv installed/most-4.10.2.tar.bz2 .
test ! -f most-4.10.2.tar.bz2 &&
wget ftp://space.mit.edu/pub/davis/most/most-4.10.2.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "most-*" -exec rm -r {} \;
tar xjvf ~/most-4.10.2.tar.bz2
cd most-4.10.2
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/most-*.tar.*
mv most-4.10.2.tar.bz2 installed/
# If you ever want to uninstall most, this should do it:
su
rm -f /usr/bin/most /usr/man/man1/most.1
test -d /usr/doc/most && rm -r /usr/doc/most
exit
find ~/src -maxdepth 1 -type d -name "most-*" -exec rm -r {} \;
rm -f ~/installed/most-*.tar.*