projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make util/mkrc.pl location agnostic and adapt Makefile.shared
[openssl.git]
/
util
/
mkrc.pl
diff --git
a/util/mkrc.pl
b/util/mkrc.pl
index e20a50283c21443f28e0565604151a7e3abaef08..8b74ff8adc5617dd55573105613358d523766702 100755
(executable)
--- a/
util/mkrc.pl
+++ b/
util/mkrc.pl
@@
-1,6
+1,13
@@
#!/bin/env perl
#
#!/bin/env perl
#
-open FD,"include/openssl/opensslv.h";
+
+use lib ".";
+use configdata;
+use File::Spec::Functions;
+
+my $versionfile = catfile($config{sourcedir},"include/openssl/opensslv.h");
+
+open FD, $versionfile or die "Couldn't open include/openssl/opensslv.h: $!\n";
while(<FD>) {
if (/OPENSSL_VERSION_NUMBER\s+(0x[0-9a-f]+)/i) {
$ver = hex($1);
while(<FD>) {
if (/OPENSSL_VERSION_NUMBER\s+(0x[0-9a-f]+)/i) {
$ver = hex($1);