diff options
Diffstat (limited to 'openssl/util/arx.pl')
-rw-r--r-- | openssl/util/arx.pl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/openssl/util/arx.pl b/openssl/util/arx.pl new file mode 100644 index 000000000..ce62625c3 --- /dev/null +++ b/openssl/util/arx.pl @@ -0,0 +1,15 @@ +#!/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; |