cd
test -f installed/grip-3.2.0.tar.gz &&
mv installed/grip-3.2.0.tar.gz .
test ! -f grip-3.2.0.tar.gz &&
wget http://download.sf.net/grip/grip-3.2.0.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "grip-*" -exec rm -r {} \;
tar xzvf ~/grip-3.2.0.tar.gz
cd grip-3.2.0
test $UID = 0 && chown -R root:root .
# If you want to quiet the warnings about 'missing' being too old
# or missing, run this:
autoreconf -f -i
./configure
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/grip-*.tar.*
mv grip-3.2.0.tar.gz installed/
# /usr/local/share/pixmaps/gripicon.png can be used as a desktop icon
# If you ever want to uninstall grip, this should do it:
cd
su
test -d src/grip-* && ( cd src/grip-* ; make uninstall )
rm -f /usr/local/bin/grip \
/usr/local/share/pixmaps/gripicon.png \
/usr/local/share/applications/grip.desktop
test -d /usr/local/share/gnome/help/grip &&
rm -r /usr/local/share/gnome/help/grip
find /usr/local/share/locale -type d -name "grip-2.2.mo" -exec rm -r {} \;
exit
find ~/src -maxdepth 1 -type d -name "grip-*" -exec rm -r {} \;
rm -f ~/installed/grip-*.tar.*