about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-20 00:57:11 +0000
committerEric Wong <e@80x24.org>2016-06-20 00:57:33 +0000
commit4b9ab5255a2ce9e0f75a80afc731a96b760e9816 (patch)
treed0a843de73cd0cd5c8ebd883d14e6ed6befab595
parentf8d7edb01ddf5fd2bfef08f72ec3c5cfb4ffa937 (diff)
downloadpublic-inbox-4b9ab5255a2ce9e0f75a80afc731a96b760e9816.tar.gz
And add a check-manifest target to the Makefile to
ensure we're up-to-date with git (but do not depend on
git).
-rw-r--r--.gitignore1
-rw-r--r--MANIFEST2
-rw-r--r--Makefile.PL5
3 files changed, 7 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 18d00210..3b333a52 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
 /config.mak
+/MANIFEST.gen
 /Makefile.old
 /pm_to_blib
 /MYMETA.*
diff --git a/MANIFEST b/MANIFEST
index 9c8cc1cc..17a2a311 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -76,6 +76,7 @@ lib/PublicInbox/View.pm
 lib/PublicInbox/WWW.pm
 lib/PublicInbox/WatchMaildir.pm
 lib/PublicInbox/WwwAttach.pm
+lib/PublicInbox/WwwStream.pm
 sa_config/Makefile
 sa_config/README
 sa_config/root/etc/spamassassin/public-inbox.pre
@@ -134,3 +135,4 @@ t/search.t
 t/spawn.t
 t/utf8.mbox
 t/view.t
+t/watch_maildir.t
diff --git a/Makefile.PL b/Makefile.PL
index 171712a7..4a911037 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -47,7 +47,10 @@ my_syntax := \$(addsuffix .syntax, $PM_FILES \$(EXE_FILES) \$(SCRIPTS))
 
 syntax:: \$(my_syntax)
 
-check:: pure_all
+check-manifest :: MANIFEST
+        if git ls-files >\$<.gen 2>&1; then diff -u \$< \$<.gen; fi
+
+check:: pure_all check-manifest
         \$(EATMYDATA) prove -lv -j\$(N)
 
 EOF