# If you previously installed muine under /usr/local, which is the default,
# follow the uninstallation instructions at the bottom before you
# re-install/upgrade Muine.
cd
test -f installed/muine-0.8.2.tar.gz && mv installed/muine-0.8.2.tar.gz .
test ! -f muine-0.8.2.tar.gz &&
wget http://muine.gooeylinux.org/muine-0.8.2.tar.gz
cd /usr/local/src
find -type d -maxdepth 1 -name "muine-*" -exec rm -r {} \;
tar xzvf ~/muine-0.8.2.tar.gz
cd muine-0.8.2
chown -R root.root .
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
make install
find /usr/share/locale -type d -maxdepth 1 -name "muine.mo" -exec rm {} \;
cd
mkdir -p -m 0700 installed
rm -f installed/muine-*.tar.*
mv muine-0.8.2.tar.gz installed/
# /usr/share/pixmaps/muine.png can be used as a desktop icon
# If you ever wanted to remove muine, run this. 'make uninstall' removes
# muine itself, the rest removes data files that are created by it's use, the
# source directory, and the tarball. If you don't have the source directory,
# extract the tarball, run configure, then run this.
cd /usr/local/src/muine-*
make uninstall
test -d /etc/gconf/gconf.xml.defaults/apps/muine &&
rm -r /etc/gconf/gconf.xml.defaults/apps/muine
test -d /etc/gconf/gconf.xml.defaults/schemas/apps/muine &&
rm -r /etc/gconf/gconf.xml.defaults/schemas/apps/muine
find /home/*/.gconf/apps -type d -name muine -exec rm -r {} \; 2> /dev/null
find /home/*/.gnome2 -type d -name muine -exec rm -r {} \; 2> /dev/null
cd ..
find -type d -maxdepth 1 -name "muine-*" -exec rm -r {} \;
rm -f ~/installed/muine-*.tar.*