[openssl-commits] [openssl] OpenSSL_1_1_0-stable update
Richard Levitte
levitte at openssl.org
Sun May 20 08:16:06 UTC 2018
The branch OpenSSL_1_1_0-stable has been updated
via 12843c7307900e124ee0407535cab5534fc27dad (commit)
from dd1477ced7f3679d8177f942219e96fa86b37234 (commit)
- Log -----------------------------------------------------------------
commit 12843c7307900e124ee0407535cab5534fc27dad
Author: Richard Levitte <levitte at openssl.org>
Date: Sat May 19 07:09:19 2018 +0200
Windows: don't install __DECC_*.H
This adds the possibility to exclude files by regexp in util/copy.pl
Partial fix for #3254
Reviewed-by: Tim Hudson <tjh at openssl.org>
Reviewed-by: Rich Salz <rsalz at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6303)
(cherry picked from commit 246bd8fd0507f4555432c148eed5a9322c113bf5)
-----------------------------------------------------------------------
Summary of changes:
Configurations/windows-makefile.tmpl | 3 ++-
util/copy.pl | 10 ++++++++--
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/Configurations/windows-makefile.tmpl b/Configurations/windows-makefile.tmpl
index e3e213f..a2fd762 100644
--- a/Configurations/windows-makefile.tmpl
+++ b/Configurations/windows-makefile.tmpl
@@ -292,7 +292,8 @@ install_dev:
@"$(PERL)" "$(SRCDIR)\util\copy.pl" "$(SRCDIR)\ms\applink.c" \
"$(INSTALLTOP)\include\openssl"
@rem {- output_on() unless grep { $_ eq "OPENSSL_USE_APPLINK" } @{$target{defines}}; "" -}
- @"$(PERL)" "$(SRCDIR)\util\copy.pl" "$(SRCDIR)\include\openssl\*.h" \
+ @"$(PERL)" "$(SRCDIR)\util\copy.pl" "-exclude_re=/__DECC_" \
+ "$(SRCDIR)\include\openssl\*.h" \
"$(INSTALLTOP)\include\openssl"
@"$(PERL)" "$(SRCDIR)\util\copy.pl" $(BLDDIR)\include\openssl\*.h \
"$(INSTALLTOP)\include\openssl"
diff --git a/util/copy.pl b/util/copy.pl
index 01964f5..1a9cb71 100644
--- a/util/copy.pl
+++ b/util/copy.pl
@@ -18,6 +18,7 @@ use Fcntl;
my $stripcr = 0;
my $arg;
+my @excludes = ();
foreach $arg (@ARGV) {
if ($arg eq "-stripcr")
@@ -25,11 +26,16 @@ foreach $arg (@ARGV) {
$stripcr = 1;
next;
}
+ if ($arg =~ /^-exclude_re=(.*)$/)
+ {
+ push @excludes, $1;
+ next;
+ }
$arg =~ s|\\|/|g; # compensate for bug/feature in cygwin glob...
$arg = qq("$arg") if ($arg =~ /\s/); # compensate for bug in 5.10...
- foreach (glob $arg)
+ foreach my $f (glob $arg)
{
- push @filelist, $_;
+ push @filelist, $f unless grep { $f =~ /$_/ } @excludes;
}
}
More information about the openssl-commits
mailing list