Something like this in the directory where you find configdata.pm:

    $ perl opensslinf.pl > OpensslLib.inf

opensslinf.pl:

-------- snip 8< -----------------------------------------------
#! /usr/bin/perl

use strict;
use lib ".";
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 $s, "\n";
        }
    }
}
-------- snip 8< -----------------------------------------------

Note that it skips over generated source, something that LIBSRC never
contained anyway...

Cheers,
Richard

In message <rt-4.0.19-19556-1458556389-1742.4464-2...@openssl.org> on Mon, 21 
Mar 2016 10:33:09 +0000, David Woodhouse via RT <r...@openssl.org> said:

rt> The EDK2 build was using 'make files', as follows:
rt> 
rt> 
rt> make files
rt> cd -
rt> 
rt> function filelist ()
rt> {
rt>     echo '1,/# Autogenerated files list starts here/p'
rt>     echo '/# Autogenerated files list ends here/,$p'
rt>     echo '/# Autogenerated files list starts here/a\'
rt> 
rt>     while read LINE; do
rt>     case "$LINE" in
rt>         RELATIVE_DIRECTORY=*)
rt>             eval "$LINE"
rt>             ;;
rt>         LIBSRC=*)
rt>             LIBSRC=$(echo "$LINE" | sed s/^LIBSRC=//)
rt>             for FILE in $LIBSRC; do
rt>                 if [ "$FILE" != "b_print.c" ]; then
rt>                     echo -e '  
$(OPENSSL_PATH)/'$RELATIVE_DIRECTORY/$FILE\\r\\
rt>                 fi
rt>             done
rt>             ;;
rt>     esac
rt>     done
rt>     echo -e \\r
rt> }
rt> 
rt> filelist < "${OPENSSL_PATH}/MINFO" |  sed -n -f - -i OpensslLib.inf
rt> 
rt> 
rt> It wasn't pretty, but it worked. Now it doesn't. What should I be doing
rt> instead?
rt> 
rt> -- 
rt> David Woodhouse                            Open Source Technology Centre
rt> david.woodho...@intel.com                              Intel Corporation
rt> 
rt> 
rt> -- 
rt> Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4464
rt> Please log in as guest with password guest if prompted
rt> 
-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev

Reply via email to