From: Eric Wong Date: Mon, 24 Jun 2019 08:16:43 +0000 (+0000) Subject: certs/create-certs: create certs in 'certs/' directory X-Git-Tag: v1.2.0~154 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=36c3b27458e722e3e9e1cb378cee16d40469b1d0;p=public-inbox.git certs/create-certs: create certs in 'certs/' directory 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)' --- 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 :<