README: share list with public-inbox
[ssoma.git] / Makefile.PL
blobf500cc04a21101fa30edc5a11299f3903ac5467a
1 #!/usr/bin/perl
2 # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
3 # License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt)
5 # Note: this may be rewritten in another language in the future,
6 # so don't depend on any public Perl API
7 use strict;
8 use ExtUtils::MakeMaker;
9 WriteMakefile(
10 NAME => 'ssoma',
11 VERSION => '0.0.0',
12 AUTHOR => 'Eric Wong <normalperson@yhbt.net>',
13 ABSTRACT => 'some sort of mail archiver',
14 EXE_FILES => [qw/ssoma-mda ssoma ssoma-rm/],
15 PREREQ_PM => {
16 # Keep this sorted and synced to the INSTALL document
17 'Digest::SHA' => 0,
18 'Email::LocalDelivery' => 0,
19 'Email::Simple' => 0,
20 'File::Path::Expand' => 0,
21 'Net::IMAP::Simple' => 0,
25 sub MY::postamble {
26 <<'EOF';
27 RSYNC_DEST = ssoma.public-inbox.org:/srv/ssoma/
28 docs = INSTALL README COPYING $(shell git ls-files Documentation/ '*.txt')
29 gz_docs = $(addsuffix .gz, $(docs))
30 %.gz: %
31 gzip -9 --rsyncable < $< > $@+
32 touch -r $< $@+
33 mv $@+ $@
35 gz-docs: $(gz_docs)
36 rsync-docs:
37 git set-file-times $(docs)
38 $(MAKE) gz-docs
39 rsync --chmod=Fugo=r -av $(gz_docs) $(docs) $(RSYNC_DEST)
41 N = $(shell echo $$(( $$(nproc 2>/dev/null || echo 2) + 1)))
42 check:: pure_all
43 prove -lv -j$(N)
45 EOF