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: AS3215 2.0.0.0/16 X-Spam-Status: No, score=-3.6 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 04E311F934 for ; Wed, 15 Sep 2021 22:45:32 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1631745928; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2l7Hj79uzSouzp9gaKanwHmnMPqFimYiWx2xsbYm3Xc=; b=xUGJ1UsN7p7zehzriG4dgivUKatTRIDReKCh/5jwPxphLzJPNkzYkoYFsNZ7ATub89hLrq 7GYoaC3+y4DodkMo+uFBfcRCSu3IMKZWCy7xqYysnmXNp+T00LGu/KSmSKh6E3woF0yAfL CJ6lI24Mj7IxlMsWUqMDBEQYgXzz6ajW2328umeFJJdwjyNbEyk911keZv5NwabylriF5j TJwA1lJMV811e7tkqbi3Ksyphvb/V0jEH6OkakMMmAusaqp2Wj6Pp6VqQWcnkYZsx8Tkjp QGYlRBA4t3TqhXFTzA9/zHlAKIFLlhGQqqaLKYGzX2l3kYpSSrznUiOolhggdw== From: Kyle Meyer To: Eric Wong Cc: meta@public-inbox.org Subject: Re: [PATCH 3/5] clone|fetch|--mirror: add convenience $INBOX_DIR/Makefile In-Reply-To: <20210915213559.21757-4-e@80x24.org> References: <20210915213559.21757-1-e@80x24.org> <20210915213559.21757-4-e@80x24.org> Date: Wed, 15 Sep 2021 18:45:26 -0400 Message-ID: <87r1dpv4op.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyle@kyleam.com List-Id: Eric Wong writes: > 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. Sounds like a nice idea. [...] > +sub write_makefile { > + my ($dir, $ibx_ver) = @_; > + my $f = "$dir/Makefile"; > + if (sysopen my $fh, $f, O_CREAT|O_EXCL|O_WRONLY) { > + print $fh < +# This is a v$ibx_ver public-inbox, see the public-inbox-v$ibx_ver-format(5) > +# manpage for more information on the format. This Makefile is > +# intended as a familiar wrapper for users unfamiliar with > +# public-inbox-* commands. > +# > +# See the respective manpages for public-inbox-fetch(1), > +# public-inbox-index(1), etc for more information on > +# some of the commands used by this Makefile. > +# > +# This Makefile will not modified nor read by public-inbox, missing "be" before "modified"