Update perl asm scripts include paths for perlasm.
authorDr. Stephen Henson <steve@openssl.org>
Sat, 5 Jan 2008 22:28:38 +0000 (22:28 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 5 Jan 2008 22:28:38 +0000 (22:28 +0000)
crypto/bf/asm/bf-586.pl
crypto/bn/asm/bn-586.pl
crypto/bn/asm/co-586.pl
crypto/cast/asm/cast-586.pl
crypto/des/asm/crypt586.pl
crypto/des/asm/des-586.pl
crypto/md5/asm/md5-586.pl
crypto/ripemd/asm/rmd-586.pl
crypto/whrlpool/asm/wp-mmx.pl
crypto/x86cpuid.pl

index b556642c949a4fe21dc48263df9dfcc2a34da68c..b74cfbafd4b05cc9f0d6e643a2df13ae836e92f7 100644 (file)
@@ -1,6 +1,7 @@
 #!/usr/local/bin/perl
 
-push(@INC,"perlasm","../../perlasm");
+$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
+push(@INC,"${dir}","${dir}../../perlasm");
 require "x86asm.pl";
 require "cbc.pl";
 
index 1468906be1fbc9bce7966665d2c5b9ded7cdd007..332ef3e91d621d7f9f4bb20952795c4c04c0acd2 100644 (file)
@@ -1,6 +1,7 @@
 #!/usr/local/bin/perl
 
-push(@INC,"perlasm","../../perlasm");
+$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
+push(@INC,"${dir}","${dir}../../perlasm");
 require "x86asm.pl";
 
 &asm_init($ARGV[0],$0);
index 5d962cb957d34447b3e7cfc6de632648154f11ed..57101a6bd7757f3d8b57671edcb7a67a06f842cc 100644 (file)
@@ -1,6 +1,7 @@
 #!/usr/local/bin/perl
 
-push(@INC,"perlasm","../../perlasm");
+$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
+push(@INC,"${dir}","${dir}../../perlasm");
 require "x86asm.pl";
 
 &asm_init($ARGV[0],$0);
index 6be0bfe57245e75fd0f90fafaffffcf4de51bf03..bf6810d335f25310b06e303623e7573c75c40ef9 100644 (file)
@@ -3,7 +3,8 @@
 # define for pentium pro friendly version
 $ppro=1;
 
-push(@INC,"perlasm","../../perlasm");
+$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
+push(@INC,"${dir}","${dir}../../perlasm");
 require "x86asm.pl";
 require "cbc.pl";
 
index 0299884af7849f693ed8dc5e4f82273322c6b853..e36f7d44bd7dc4e71f35df07e795a275ddb5fefb 100644 (file)
@@ -6,7 +6,8 @@
 # things perfect.
 #
 
-push(@INC,"perlasm","../../perlasm");
+$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
+push(@INC,"${dir}","${dir}../../perlasm");
 require "x86asm.pl";
 
 &asm_init($ARGV[0],"crypt586.pl");
index de6013624fddf1acc1a9f71a1b69bc987022f531..32282bd5fca080e5713715bad704cc5f1d7d353b 100644 (file)
@@ -4,7 +4,8 @@
 # Svend Olaf Mikkelsen <svolaf@inet.uni-c.dk>
 #
 
-push(@INC,"perlasm","../../perlasm");
+$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
+push(@INC,"${dir}","${dir}../../perlasm");
 require "x86asm.pl";
 require "cbc.pl";
 require "desboth.pl";
index 76ac235f7d035e388d925847445a2fcbafcd6de6..6cb66bb49991500f88bdfe0c79b81ffbd137d7ce 100644 (file)
@@ -7,7 +7,8 @@
 
 $normal=0;
 
-push(@INC,"perlasm","../../perlasm");
+$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
+push(@INC,"${dir}","${dir}../../perlasm");
 require "x86asm.pl";
 
 &asm_init($ARGV[0],$0);
index 4f3c4c967f5146be91219395b5775d2ae33ccf47..e8b2bc2db2dee356f8d69951ad4fba75281e2921 100644 (file)
@@ -5,7 +5,8 @@
 
 $normal=0;
 
-push(@INC,"perlasm","../../perlasm");
+$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
+push(@INC,"${dir}","${dir}../../perlasm");
 require "x86asm.pl";
 
 &asm_init($ARGV[0],$0);
index d52439bca4b805f668134731e82411b4e19a2bb0..32cf16380b54d39aea6ff7ed5a3b40fae6f2ec7c 100644 (file)
@@ -45,7 +45,8 @@
 #      non-MMX implementation would actually pay off, but till
 #      opposite is proved "unlikely" is assumed.
 
-push(@INC,"../../perlasm");
+$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
+push(@INC,"${dir}","${dir}../../perlasm");
 require "x86asm.pl";
 
 &asm_init($ARGV[0],"wp-mmx.pl");
index 0fb0657fa7ec0020d395e4451833d521d452f59d..c3291112032b3ff7b365830ecf123f3a4efc4df8 100644 (file)
@@ -1,6 +1,7 @@
 #!/usr/bin/env perl
 
-push(@INC,"perlasm");
+$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
+push(@INC, "${dir}perlasm", "perlasm");
 require "x86asm.pl";
 
 &asm_init($ARGV[0],"x86cpuid");