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

290
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 #!/bin/sh
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 set -eu
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
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
2f0459c97d3e add build notes
Meredith Howard <mhoward@roomag.org>
parents: 311
diff changeset
7
290
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 cd
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9 mkdir -p sandbox
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11 if [ ! -d sandbox/neomutt ]; then
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12 git clone https://github.com/neomutt/neomutt.git sandbox/neomutt
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
13 else
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
14 git -C sandbox/neomutt pull
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
15 fi
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
16
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
17 cd sandbox/neomutt
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
18
392
50353728ea83 guess ostype isnt always set
Meredith Howard <mhoward@roomag.org>
parents: 388
diff changeset
19 case "${OSTYPE:-}" in
388
50ed49b3d1dc Update for osx 10.11
Meredith Howard <mhoward@roomag.org>
parents: 366
diff changeset
20 darwin*)
50ed49b3d1dc Update for osx 10.11
Meredith Howard <mhoward@roomag.org>
parents: 366
diff changeset
21 # Use macports' headers
50ed49b3d1dc Update for osx 10.11
Meredith Howard <mhoward@roomag.org>
parents: 366
diff changeset
22 OPENSSL_PREFIX=/opt/local
50ed49b3d1dc Update for osx 10.11
Meredith Howard <mhoward@roomag.org>
parents: 366
diff changeset
23 ;;
50ed49b3d1dc Update for osx 10.11
Meredith Howard <mhoward@roomag.org>
parents: 366
diff changeset
24 esac
50ed49b3d1dc Update for osx 10.11
Meredith Howard <mhoward@roomag.org>
parents: 366
diff changeset
25
50ed49b3d1dc Update for osx 10.11
Meredith Howard <mhoward@roomag.org>
parents: 366
diff changeset
26 ./prepare -q \
366
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
27 --with-homespool=/var/spool/mail \
388
50ed49b3d1dc Update for osx 10.11
Meredith Howard <mhoward@roomag.org>
parents: 366
diff changeset
28 --with-ssl${OPENSSL_PREFIX:+=$OPENSSL_PREFIX} \
50ed49b3d1dc Update for osx 10.11
Meredith Howard <mhoward@roomag.org>
parents: 366
diff changeset
29 --with-sasl \
437
0543a6606d82 Update for current neomutt
Meredith Howard <mhoward@roomag.org>
parents: 392
diff changeset
30 --with-tokyocabinet \
290
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
31 --enable-imap --enable-smtp \
388
50ed49b3d1dc Update for osx 10.11
Meredith Howard <mhoward@roomag.org>
parents: 366
diff changeset
32 --with-regex
293
7df7f79939f0 drop hcache, make default
Meredith Howard <mhoward@roomag.org>
parents: 291
diff changeset
33
321
12d8f50e80a9 fix deps
Meredith Howard <mhoward@roomag.org>
parents: 318
diff changeset
34 make -s -j3
290
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
35
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
36 cd ~/bin
364
dc8ef0de424d tweak neomutt build
Meredith Howard <mhoward@roomag.org>
parents: 359
diff changeset
37 for BIN in mutt mutt_dotlock pgpewrap; do
dc8ef0de424d tweak neomutt build
Meredith Howard <mhoward@roomag.org>
parents: 359
diff changeset
38 ln -sf ../sandbox/neomutt/$BIN
dc8ef0de424d tweak neomutt build
Meredith Howard <mhoward@roomag.org>
parents: 359
diff changeset
39 done
290
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
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
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
55 autoconf libncursesw5-dev libssl-dev libsasl2-dev libtokyocabinet-dev links
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
56 gnupg2 urlscan
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 =head2 Cygwin
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
59
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
60 autoconf libncursesw-devel openssl-devel libsasl2-devel libgdbm4-devel links
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
61
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
62 gpg2 isn't available in cygwin, but there is a windows build. using it with
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
63 cygwin paths requires a wrapper though.
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
64
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
65 =cut

mercurial