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