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.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 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 026351F461 for ; Wed, 26 Jun 2019 08:06:35 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] certs/create-certs: create certs in 'certs/' directory Date: Wed, 26 Jun 2019 08:06:34 +0000 Message-Id: <20190626080634.24556-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: If running in our top-level source tree, use the 'certs/' directory as the prefix so we can just invoke `./certs/create-certs.perl' instead of `(cd certs && ./create-certs.perl)' --- certs/create-certs.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certs/create-certs.perl b/certs/create-certs.perl index 476be4d7..b287cec5 100755 --- a/certs/create-certs.perl +++ b/certs/create-certs.perl @@ -6,7 +6,7 @@ use warnings; use IO::Socket::SSL::Utils; use Net::SSLeay; -my $dir = "./"; +my $dir = -d 'certs' && -f 'Makefile.PL' ? './certs/' : './'; my $now = time(); my $later = 0x7fffffff; # 2038 problems on 32-bit :< -- EW