diff options
author | Eric Wong <e@80x24.org> | 2019-06-24 08:16:43 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-26 08:05:53 +0000 |
commit | 36c3b27458e722e3e9e1cb378cee16d40469b1d0 (patch) | |
tree | bc86036b471d62bd3e52a74e03edfcb64d22da31 /certs | |
parent | 7d7e5013e3d2e56c48735698e39890e8f67b6b56 (diff) | |
download | public-inbox-36c3b27458e722e3e9e1cb378cee16d40469b1d0.tar.gz |
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)'
Diffstat (limited to 'certs')
-rwxr-xr-x | certs/create-certs.perl | 2 |
1 files changed, 1 insertions, 1 deletions
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 :< |