aboutsummaryrefslogtreecommitdiffstats
path: root/util/arx.pl
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-01-26 01:35:07 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-01-26 01:35:07 +0000
commit3d6a8954f8f2c247e6cc1dd2cb9879cd470dc2ce (patch)
treef85b747374f7f39589d2b330b9540c1b17a5648a /util/arx.pl
parentc11845a4ab3bbfd39f36ace3e76c832bb642b9b8 (diff)
downloadopenssl-3d6a8954f8f2c247e6cc1dd2cb9879cd470dc2ce.tar.gz
update mkerr.pl for use fips directory, add arx.pl script
Diffstat (limited to 'util/arx.pl')
-rw-r--r--util/arx.pl15
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;