From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 0C1232018F for ; Mon, 28 Nov 2022 05:32:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1669613561; bh=Xlk0Uvvo1GS5OS5CQiLTwAaUFv4j2BNyXMfL1N6kms0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oMrm+2mEhFxQC7ucikws+hT/1j4hNXHofnY42MdzA9mvlV8o+Z+3bYG4ZWY2xM5Lc cXd2EZR4+AEqOYrCOgwCaOL4bRyKhOfap5EVn4/7DDhVRLKJsy0RRtP7MMU6Pa8ml8 U2A7FMrruqejkp2KmPaalCZYGTSoYwAmchcRCUlQ= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 40/95] lei_mirror: add `index' target to generated Makefile Date: Mon, 28 Nov 2022 05:31:37 +0000 Message-Id: <20221128053232.291618-41-e@80x24.org> In-Reply-To: <20221128053232.291618-1-e@80x24.org> References: <20221128053232.291618-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: It can probably be a useful hint to avoid misleading users into always using `--reindex'. --- lib/PublicInbox/LeiMirror.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm index 3bc19d2f..4b6da260 100644 --- a/lib/PublicInbox/LeiMirror.pm +++ b/lib/PublicInbox/LeiMirror.pm @@ -763,6 +763,7 @@ help : @echo Rarely needed targets: @echo ' make reindex - may be needed for new features/bugfixes' @echo ' make compact - rewrite Xapian storage to save space' + @echo ' make index - initial index after clone fetch : public-inbox-fetch @@ -779,12 +780,14 @@ update : echo 'public-inbox index not initialized'; \ echo 'see public-inbox-index(1) man page'; \ fi +index : + public-inbox-index reindex : public-inbox-index --reindex compact : public-inbox-compact -.PHONY : help fetch update reindex compact +.PHONY : help fetch update index reindex compact EOM close $fh or die "close($f): $!"; } else {