On Mon, 2016-03-21 at 11:55 +0100, Richard Levitte wrote: > Something like this in the directory where you find configdata.pm: > > $ perl opensslinf.pl > OpensslLib.inf > > opensslinf.pl:
...
That works; thank you. It appears to give me rand/rand_vms.c which I
didn't have before, that that's harmless. And it obviously gives me
bio/b_print.c which I was manually filtering out before — I need to do
something better than that!
It also means I need to try to remember some perl because my test is
currently just using your perl snippet and feeding it to the sed
command I had before... which is *stupid*. But that's my problem :)
function filelist ()
{
echo '1,/# Autogenerated files list starts here/p'
echo '/# Autogenerated files list ends here/,$p'
echo '/# Autogenerated files list starts here/a\'
perl <<EOF
use strict;
use lib "${OPENSSL_PATH}";
use configdata qw/%unified_info/;
foreach my \$product ((@{\$unified_info{libraries}},
@{\$unified_info{engines}})) {
foreach my \$o (@{\$unified_info{sources}->{\$product}}) {
foreach my \$s (@{\$unified_info{sources}->{\$o}}) {
next if \$unified_info{generate}->{\$s};
print " \\\$(OPENSSL_PATH)/", \$s, "\r\\\\\n";
}
}
}
EOF
echo -e \\r
}
filelist | sed -n -f - -i OpensslLib.inf
> Note that it skips over generated source, something that LIBSRC never
> contained anyway...
Yeah, we don't use any generated source. The only generated file we use
is opensslconf.h, and we stash our own copy of that away as part of the
same script I'm looking at here.
Once EDK2 starts using NASM instead of having *different* copies of
various asm files for the MSVC vs. GCC builds(!!), perhaps I'll look at
whether I can stop using no-asm. But that's a game for another day.
--
David Woodhouse Open Source Technology Centre
[email protected] Intel Corporation
smime.p7s
Description: S/MIME cryptographic signature
-- openssl-dev mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
