# This howto used to cover multiple things, move tarballs in ~/installed/wv/
# and clean up source in ~/src/wv/
test -d ~/installed/wv &&
( mv -f ~/installed/wv/* ~/installed/ ; rmdir ~/installed/wv )
test -d ~/src/wv && rm -r ~/src/wv
# If you don't have/want ImageMagick, try passing --with-libwmf=/usr/local
# to configure below.
cd
test -f installed/wv-1.2.1.tar.gz && mv installed/wv-1.2.1.tar.gz .
test ! -f wv-1.2.1.tar.gz &&
wget http://download.sf.net/wvware/wv-1.2.1.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "wv-*" -exec rm -r {} \;
tar xzvf ~/wv-1.2.1.tar.gz
cd wv-1.2.1
test $UID = 0 && chown -R root:root .
./configure
# If 'make' fails with an error like "undefined reference to
# `libiconv_close'", run 'make LIBS=-liconv'. This should only happen
# if you install libiconv rather than using libc's built in iconv.
make
su -c "make install ; ldconfig"
cd
rm -f installed/wv-*.tar.gz installed/wv/wv-*.tar.gz
mv wv-1.2.1.tar.gz installed/
# If you ever want to uninstall wv, cd into the source directory, run
# 'make uninstall', remove the source directory, then remove the tarball