From a5aa63a456fb6e7129e3ba048b17d157df5a1bab Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 11 Mar 2016 00:49:47 +0100 Subject: Fix some assembler generating scripts for better unification Some of these scripts would recognise an output parameter if it looks like a file path. That works both in both the classic and new build schemes. Some fo these scripts would only recognise it if it's a basename (i.e. no directory component). Those need to be corrected, as the output parameter in the new build scheme is more likely to contain a directory component than not. Reviewed-by: Andy Polyakov --- crypto/aes/asm/aes-armv4.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/aes/asm/aes-armv4.pl') diff --git a/crypto/aes/asm/aes-armv4.pl b/crypto/aes/asm/aes-armv4.pl index f72d027458..3efe415e66 100644 --- a/crypto/aes/asm/aes-armv4.pl +++ b/crypto/aes/asm/aes-armv4.pl @@ -33,8 +33,8 @@ # improvement on Cortex A8 core and ~21.5 cycles per byte. $flavour = shift; -if ($flavour=~/^\w[\w\-]*\.\w+$/) { $output=$flavour; undef $flavour; } -else { while (($output=shift) && ($output!~/^\w[\w\-]*\.\w+$/)) {} } +if ($flavour=~/\w[\w\-]*\.\w+$/) { $output=$flavour; undef $flavour; } +else { while (($output=shift) && ($output!~/\w[\w\-]*\.\w+$/)) {} } if ($flavour && $flavour ne "void") { $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1; -- cgit v1.2.3