mirror of
https://github.com/openssl/openssl.git
synced 2024-12-15 06:01:37 +08:00
16 lines
337 B
Perl
16 lines
337 B
Perl
#!/bin/perl
|
|
|
|
# Simple perl script to wrap round "ar" program and exclude any
|
|
# object files in the environment variable EXCL_OBJ
|
|
|
|
map { s/^.*\/([^\/]*)$/$1/ ; $EXCL{$_} = 1} split(' ', $ENV{EXCL_OBJ});
|
|
|
|
#my @ks = keys %EXCL;
|
|
#print STDERR "Excluding: @ks \n";
|
|
|
|
my @ARGS = grep { !exists $EXCL{$_} } @ARGV;
|
|
|
|
system @ARGS;
|
|
|
|
exit $? >> 8;
|