bin/setup-neomutt

changeset 366
8d2d058ea98b
parent 364
dc8ef0de424d
child 388
50ed49b3d1dc
equal deleted inserted replaced
365:b3ab12e8a598 366:8d2d058ea98b
1 #!/bin/sh 1 #!/bin/sh
2 set -eu 2 set -eu
3 3
4 echo "Requirements (on debian):" 4 case ${1:-} in *help|-h)
5 echo "autoconf libncursesw5-dev libssl-dev libtokyocabinet-dev libsasl2-dev" 5 exec perldoc $0;;
6 echo "links" 6 esac
7 7
8 cd 8 cd
9 mkdir -p sandbox 9 mkdir -p sandbox
10 10
11 if [ ! -d sandbox/neomutt ]; then 11 if [ ! -d sandbox/neomutt ]; then
15 fi 15 fi
16 16
17 cd sandbox/neomutt 17 cd sandbox/neomutt
18 18
19 ./prepare \ 19 ./prepare \
20 --enable-quick-build \ 20 --with-homespool=/var/spool/mail \
21 --enable-quick-build \
21 --with-ssl --with-sasl \ 22 --with-ssl --with-sasl \
22 --enable-hcache \ 23 --enable-hcache \
23 --enable-imap --enable-smtp \ 24 --enable-imap --enable-smtp \
24 --with-regex \ 25 --with-regex \
25 >/dev/null 26 >/dev/null
29 cd ~/bin 30 cd ~/bin
30 for BIN in mutt mutt_dotlock pgpewrap; do 31 for BIN in mutt mutt_dotlock pgpewrap; do
31 ln -sf ../sandbox/neomutt/$BIN 32 ln -sf ../sandbox/neomutt/$BIN
32 done 33 done
33 34
35
36 :<<=cut
37 =head1 NAME
38
39 setup-neomutt - clone/update, build, and link neomutt
40
41 =head1 DESCRIPTION
42
43 Run to do the above.
44
45 =head1 REQUIREMENTS
46
47 =head2 Debian
48
49 autoconf libncursesw5-dev libssl-dev libsasl2-dev libtokyocabinet-dev links
50 gnupg2 urlscan
51
52 =head2 Cygwin
53
54 autoconf libncursesw-devel openssl-devel libsasl2-devel libgdbm4-devel links
55
56 gpg2 isn't available in cygwin, but there is a windows build. using it with
57 cygwin paths requires a wrapper though.
58
59 =cut

mercurial