From 36c3b27458e722e3e9e1cb378cee16d40469b1d0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 24 Jun 2019 08:16:43 +0000 Subject: 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)' --- certs/create-certs.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'certs') 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 :< -- cgit v1.2.3-24-ge0c7