arx.pl 337 B

123456789101112131415
  1. #!/bin/perl
  2. # Simple perl script to wrap round "ar" program and exclude any
  3. # object files in the environment variable EXCL_OBJ
  4. map { s/^.*\/([^\/]*)$/$1/ ; $EXCL{$_} = 1} split(' ', $ENV{EXCL_OBJ});
  5. #my @ks = keys %EXCL;
  6. #print STDERR "Excluding: @ks \n";
  7. my @ARGS = grep { !exists $EXCL{$_} } @ARGV;
  8. system @ARGS;
  9. exit $? >> 8;