cd
test -f installed/gob2-2.0.14.tar.bz2 && mv installed/gob2-2.0.14.tar.bz2 .
test ! -f gob2-2.0.14.tar.bz2 &&
wget http://ftp.gnome.org/pub/gnome/sources/gob2/2.0/gob2-2.0.14.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gob2-*" -exec rm -r {} \;
tar xjvf ~/gob2-2.0.14.tar.bz2
cd gob2-2.0.14
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/gob2-*.tar.*
mv gob2-2.0.14.tar.bz2 installed/
# If you ever want to uninstall gob2, this should do it:
cd
su
test -d src/gob2-* && ( cd src/gob2-* ; make uninstall )
rm -f /usr/bin/gob2 /usr/man/man1/gob2.1 /usr/share/aclocal/gob2.m4
exit
find ~/src -maxdepth 1 -type d -name "gob2-*" -exec rm -r {} \;
rm -f ~/installed/gob2-*.tar.*