cd
test -f installed/elvis-2.2_0.tar.gz && mv installed/elvis-2.2_0.tar.gz .
test ! -f elvis-2.2_0.tar.gz &&
wget ftp://ftp.cs.pdx.edu/pub/elvis/elvis-2.2_0.tar.gz
cd /usr/local/src
find -type d -maxdepth 1 -name "elvis-*" -exec rm -r {} \;
tar xzvf ~/elvis-2.2_0.tar.gz
cd elvis-2.2_0
chown -R root.root .
# If you don't want X, Xft and/or Gnome support (which is temporarily disabled
# by default) built in, add --without-x, --without-xft, and/or
# --without-gnome to the configure line. To shut off all three, you only
# need to specify --without-x.
./configure \
--bindir=/usr/bin \
--datadir=/usr/share/elvis-2.2_0 \
--docdir=/usr/share/elvis-2.2_0/doc \
--verbose
make
removepkg elvis
find /usr/doc -type l -name "elvis-*" -exec rm {} \;
find /usr/share -type d -name "elvis-*" -exec rm -r {} \;
make install
ln -sf /usr/bin/elvis /usr/bin/ex
ln -sf /usr/bin/elvis /usr/bin/vi
ln -sf /usr/share/elvis-2.2_0/doc /usr/doc/elvis-2.2_0
cd
mkdir -p -m 0700 installed
rm -f installed/elvis-*.tar.*
mv elvis-2.2_0.tar.gz installed/
# If vim is your preferred editor, you may want to change the ex and vi
# symlinks to point to it instead