about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-06-24 08:16:43 +0000
committerEric Wong <e@80x24.org>2019-06-26 08:05:53 +0000
commit36c3b27458e722e3e9e1cb378cee16d40469b1d0 (patch)
treebc86036b471d62bd3e52a74e03edfcb64d22da31
parent7d7e5013e3d2e56c48735698e39890e8f67b6b56 (diff)
downloadpublic-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)'
-rwxr-xr-xcerts/create-certs.perl2
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 :<