bin/setup-neomutt

Tue, 30 Aug 2016 18:14:12 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Tue, 30 Aug 2016 18:14:12 -0400
changeset 377
7190350f2ab3
parent 366
8d2d058ea98b
child 388
50ed49b3d1dc
permissions
-rwxr-xr-x

reformat

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)
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
5 exec perldoc $0;;
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
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
19 ./prepare \
366
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
20 --with-homespool=/var/spool/mail \
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
21 --enable-quick-build \
311
1912a7c57deb add sasl
Meredith Howard <mhoward@roomag.org>
parents: 302
diff changeset
22 --with-ssl --with-sasl \
302
3a25d9b124bc enable caches
Meredith Howard <mhoward@roomag.org>
parents: 293
diff changeset
23 --enable-hcache \
290
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
24 --enable-imap --enable-smtp \
364
dc8ef0de424d tweak neomutt build
Meredith Howard <mhoward@roomag.org>
parents: 359
diff changeset
25 --with-regex \
dc8ef0de424d tweak neomutt build
Meredith Howard <mhoward@roomag.org>
parents: 359
diff changeset
26 >/dev/null
293
7df7f79939f0 drop hcache, make default
Meredith Howard <mhoward@roomag.org>
parents: 291
diff changeset
27
321
12d8f50e80a9 fix deps
Meredith Howard <mhoward@roomag.org>
parents: 318
diff changeset
28 make -s -j3
290
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
29
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
30 cd ~/bin
364
dc8ef0de424d tweak neomutt build
Meredith Howard <mhoward@roomag.org>
parents: 359
diff changeset
31 for BIN in mutt mutt_dotlock pgpewrap; do
dc8ef0de424d tweak neomutt build
Meredith Howard <mhoward@roomag.org>
parents: 359
diff changeset
32 ln -sf ../sandbox/neomutt/$BIN
dc8ef0de424d tweak neomutt build
Meredith Howard <mhoward@roomag.org>
parents: 359
diff changeset
33 done
290
6a140c2e1366 add build-neomutt
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
34
366
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
35
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
36 :<<=cut
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
37 =head1 NAME
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
38
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
39 setup-neomutt - clone/update, build, and link neomutt
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
40
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
41 =head1 DESCRIPTION
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
42
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
43 Run to do the above.
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
44
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
45 =head1 REQUIREMENTS
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
46
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
47 =head2 Debian
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
48
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
49 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
50 gnupg2 urlscan
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
51
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
52 =head2 Cygwin
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
53
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
54 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
55
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
56 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
57 cygwin paths requires a wrapper though.
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
58
8d2d058ea98b fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents: 364
diff changeset
59 =cut

mercurial