X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=util%2Fup_ver.pl;h=06a1eaf9db6a343d00aa8faadb4ac52d262620bc;hb=ad65ce755ea292df565a50e730e4210a3e732f4e;hp=ed9aa59af00c79c940151111fff603d577f52f91;hpb=31b8d8684441e6cd5138832bb1b2ddb10acd6ba6;p=oweals%2Fopenssl.git diff --git a/util/up_ver.pl b/util/up_ver.pl index ed9aa59af0..06a1eaf9db 100755 --- a/util/up_ver.pl +++ b/util/up_ver.pl @@ -60,8 +60,8 @@ foreach $file (@files) while () { - if ((s/SSLeay \d\.\d.\d[^"]*(\"|\s)/SSLeay $ver $time\1/) || - s/^(\#define\s+SSLEAY_VERSION_NUMBER\s+0x)[0-9a-zA-Z]+(.*)$/$1$xver$2/) + if ((s/(SSLeay|OpenSSL|SSLeay\/OpenSSL) \d\.\d.\d[^"]*(\"|\s)/OpenSSL $ver $time\2/) || + s/^(\#define\s+OPENSSL_VERSION_NUMBER\s+0x)[0-9a-zA-Z]+(.*)$/$1$xver$2/) { print STDERR " Done"; $found++; @@ -75,6 +75,6 @@ foreach $file (@files) close(IN); close(OUT); (!$found) && die "unable to update the version number in $file\n"; - rename($file,"$file.old") || die "unable to rename $file:$!\n"; + rename($file,"$file.bak") || die "unable to rename $file:$!\n"; rename("$file.new",$file) || die "unable to rename $file.new:$!\n"; }