Fri, 05 May 2017 13:41:05 -0400
Fix up previews
290 | 1 | #!/bin/sh |
2 | set -eu | |
3 | ||
366
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
4 | case ${1:-} in *help|-h) |
446
acd0b08d467e
skip pager for tiny perldocs
Meredith Howard <mhoward@roomag.org>
parents:
437
diff
changeset
|
5 | exec perldoc -T $0;; |
366
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
6 | esac |
312 | 7 | |
290 | 8 | cd |
9 | mkdir -p sandbox | |
10 | ||
11 | if [ ! -d sandbox/neomutt ]; then | |
482
2c7cb331d2dc
Don't really need full clones
Meredith Howard <mhoward@roomag.org>
parents:
446
diff
changeset
|
12 | git clone --depth 1 https://github.com/neomutt/neomutt.git sandbox/neomutt |
290 | 13 | else |
14 | git -C sandbox/neomutt pull | |
15 | fi | |
16 | ||
17 | cd sandbox/neomutt | |
18 | ||
392
50353728ea83
guess ostype isnt always set
Meredith Howard <mhoward@roomag.org>
parents:
388
diff
changeset
|
19 | case "${OSTYPE:-}" in |
388 | 20 | darwin*) |
21 | # Use macports' headers | |
22 | OPENSSL_PREFIX=/opt/local | |
23 | ;; | |
24 | esac | |
25 | ||
26 | ./prepare -q \ | |
546 | 27 | --with-mailpath=/var/spool/mail \ |
388 | 28 | --with-ssl${OPENSSL_PREFIX:+=$OPENSSL_PREFIX} \ |
29 | --with-sasl \ | |
437
0543a6606d82
Update for current neomutt
Meredith Howard <mhoward@roomag.org>
parents:
392
diff
changeset
|
30 | --with-tokyocabinet \ |
546 | 31 | --enable-gpgme \ |
290 | 32 | --enable-imap --enable-smtp \ |
293
7df7f79939f0
drop hcache, make default
Meredith Howard <mhoward@roomag.org>
parents:
291
diff
changeset
|
33 | |
321 | 34 | make -s -j3 |
290 | 35 | |
36 | cd ~/bin | |
364 | 37 | for BIN in mutt mutt_dotlock pgpewrap; do |
38 | ln -sf ../sandbox/neomutt/$BIN | |
39 | done | |
290 | 40 | |
366
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
41 | :<<=cut |
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
42 | =head1 NAME |
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
43 | |
446
acd0b08d467e
skip pager for tiny perldocs
Meredith Howard <mhoward@roomag.org>
parents:
437
diff
changeset
|
44 | setup-neomutt - Clone/update and build neomutt |
366
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
45 | |
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
46 | =head1 DESCRIPTION |
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
47 | |
446
acd0b08d467e
skip pager for tiny perldocs
Meredith Howard <mhoward@roomag.org>
parents:
437
diff
changeset
|
48 | Run to do the above, incl. symlinking relevant binaries in C<~/bin> to the |
acd0b08d467e
skip pager for tiny perldocs
Meredith Howard <mhoward@roomag.org>
parents:
437
diff
changeset
|
49 | neomutt build. |
366
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
50 | |
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
51 | =head1 REQUIREMENTS |
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
52 | |
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
53 | =head2 Debian |
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
54 | |
558 | 55 | apt install autoconf links pandoc gnupg2 gpgsm urlscan libncursesw5-dev \ |
546 | 56 | libssl-dev libsasl2-dev libtokyocabinet-dev libgpgme11-dev |
366
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
57 | |
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
58 | =cut |