bin/setup-neomutt

Sun, 18 Dec 2016 17:42:41 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 18 Dec 2016 17:42:41 -0500
changeset 454
e501f44a5885
parent 446
acd0b08d467e
child 482
2c7cb331d2dc
permissions
-rwxr-xr-x

set spideroak as 2nd wiki

#!/bin/sh
set -eu

case ${1:-} in *help|-h)
  exec perldoc -T $0;;
esac

cd
mkdir -p sandbox

if [ ! -d sandbox/neomutt ]; then
  git clone https://github.com/neomutt/neomutt.git sandbox/neomutt
else
  git -C sandbox/neomutt pull
fi

cd sandbox/neomutt

case "${OSTYPE:-}" in
  darwin*)
    # Use macports' headers
    OPENSSL_PREFIX=/opt/local
    ;;
esac

./prepare -q \
 --with-homespool=/var/spool/mail \
 --with-ssl${OPENSSL_PREFIX:+=$OPENSSL_PREFIX} \
 --with-sasl \
 --with-tokyocabinet \
 --enable-imap --enable-smtp \
 --with-regex

make -s -j3

cd ~/bin
for BIN in mutt mutt_dotlock pgpewrap; do
  ln -sf ../sandbox/neomutt/$BIN
done

:<<=cut
=head1 NAME

setup-neomutt - Clone/update and build neomutt

=head1 DESCRIPTION

Run to do the above, incl. symlinking relevant binaries in C<~/bin> to the
neomutt build.

=head1 REQUIREMENTS

=head2 Debian

autoconf libncursesw5-dev libssl-dev libsasl2-dev libtokyocabinet-dev links
gnupg2 urlscan

=head2 Cygwin

autoconf libncursesw-devel openssl-devel libsasl2-devel libgdbm4-devel links

gpg2 isn't available in cygwin, but there is a windows build.  using it with
cygwin paths requires a wrapper though.

=cut

mercurial