cd
test -f installed/lcdtest-1.01.tar.gz &&
mv installed/lcdtest-1.01.tar.gz .
test ! -f lcdtest-1.01.tar.gz &&
wget http://www.brouhaha.com/~eric/software/lcdtest/download/\
lcdtest-1.01.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "lcdtest-*" -exec rm -r {} \;
tar xzvf ~/lcdtest-1.01.tar.gz
cd lcdtest-1.01
test $UID = 0 && chown -R root:root .
make
su -c "install -s lcdtest /usr/local/bin/"
cd
mkdir -p -m 0700 installed
rm -f installed/lcdtest-*.tar.*
mv lcdtest-1.01.tar.gz installed/
# Run it from X, run 'lcdtest --help' in an xterm/konsole/eterm/whatever
# for usage info
# If you ever want to uninstall lcdtest, this should do it:
su -c "rm -f /usr/local/bin/lcdtest"
find ~/src -maxdepth 1 -type d -name "lcdtest-*" -exec rm -r {} \;
rm -f ~/installed/lcdtest-*.tar.*