From 5d9dcc31959d520d3e7bed3f68871245bc915ca3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 15 Sep 2021 21:35:57 +0000 Subject: clone|fetch|--mirror: add convenience $INBOX_DIR/Makefile Since the beginning of time, I've been dropping Makefiles in $INBOX_DIR (and above hiearchies) to organize groups of commands. make(1) is widely available in various flavors and a familiar tool for our target audience. It is easy to run in the right directory, typically has built-in shell completion, and doesn't silently ignore errors by default like Bourne shell. --- t/lei-mirror.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 't') diff --git a/t/lei-mirror.t b/t/lei-mirror.t index 9fdda5aa..3eb7f36a 100644 --- a/t/lei-mirror.t +++ b/t/lei-mirror.t @@ -19,6 +19,7 @@ test_lei({ tmpdir => $tmpdir }, sub { ok(-f "$t1/public-inbox/msgmap.sqlite3", 't1-mirror indexed'); is(PublicInbox::Inbox::try_cat("$t1/description"), "mirror of $http/t1/\n", 'description set'); + ok(-f "$t1/Makefile", 'convenience Makefile added (v1)'); lei_ok('ls-external'); like($lei_out, qr!\Q$t1\E!, 't1 added to ls-externals'); @@ -27,6 +28,7 @@ test_lei({ tmpdir => $tmpdir }, sub { lei_ok('add-external', $t2, '--mirror', "$http/t2/", \'--mirror v2'); ok(-f "$t2/msgmap.sqlite3", 't2-mirror indexed'); ok(-f "$t2/description", 't2 description'); + ok(-f "$t2/Makefile", 'convenience Makefile added (v2)'); is(PublicInbox::Inbox::try_cat("$t2/description"), "mirror of $http/t2/\n", 'description set'); -- cgit v1.2.3-24-ge0c7