# eps
# ===
# I include the latest version of eps - version 1.5, and version 1.2 - which
# is the version that works with abiword-plugins.
# eps 1.2
# =======
cd
test -f installed/eps-1.2.tar.gz && mv installed/eps-1.2.tar.gz .
test ! -f eps-1.2.tar.gz &&
wget http://www.inter7.com/eps/eps-1.2.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "eps-*" -exec rm -r {} \;
tar xzvf ~/eps-1.2.tar.gz
cd eps-1.2
test $UID = 0 && chown -R root:root .
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/eps-*.tar.*
mv eps-1.2.tar.gz installed/
# eps 1.5
# =======
cd
test -f installed/eps-1.5.tar.gz && mv installed/eps-1.5.tar.gz .
test ! -f eps-1.5.tar.gz &&
wget http://www.inter7.com/eps/eps-1.5.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "eps-*" -exec rm -r {} \;
tar xzvf ~/eps-1.5.tar.gz
cd eps-1.5
test $UID = 0 && chown -R root:root .
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/eps-*.tar.*
mv eps-1.5.tar.gz installed/
# If you ever want to uninstall eps, this should do it:
su
rm -f /usr/lib/libeps.a
test -d /usr/include/eps && rm -r /usr/include/eps
exit
find ~/src -maxdepth 1 -type d -name "eps-*" -exec rm -r {} \;
rm -f ~/installed/eps-*.tar.*