update mkerr.pl for use fips directory, add arx.pl script
authorDr. Stephen Henson <steve@openssl.org>
Wed, 26 Jan 2011 01:35:07 +0000 (01:35 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 26 Jan 2011 01:35:07 +0000 (01:35 +0000)
util/arx.pl [new file with mode: 0644]
util/mkerr.pl

diff --git a/util/arx.pl b/util/arx.pl
new file mode 100644 (file)
index 0000000..ce62625
--- /dev/null
@@ -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;
index 15b774f27728b5006aa1504391b5cc7b191b4066..5dd89582c527429f5a705a3d953eb3d5b2754b86 100644 (file)
@@ -115,7 +115,8 @@ EOF
 }
 
 if($recurse) {
-       @source = (<crypto/*.c>, <crypto/*/*.c>, <ssl/*.c>);
+       @source = ( <crypto/*.c>, <crypto/*/*.c>, <ssl/*.c>,
+                       <fips/*.c>, <fips/*/*.c>);
 } else {
        @source = @ARGV;
 }