# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
-# $Id: updateopenssl.pl,v 1.4 2006/09/28 00:03:11 marka Exp $
+# $Id: updateopenssl.pl,v 1.4.4.2 2006/10/11 03:51:45 marka Exp $
# updateopenssl.pl
# This script locates the latest version of OpenSSL in the grandparent
#
# Path and directory
$path = "..\\..\\";
-$SSLDirprefix = "openssl-*";
# List of files that need to be updated with the actual version of the
# openssl directory
my($file, $name);
my($cnt);
opendir(DIR,$path) || die "No Directory: $!";
- @namelist = grep (/^$SSLDirprefix/i, readdir(DIR));
+ @namelist = grep (/^openssl-[0-9]+\.[0-9]+\.[0-9]+[a-z]$/i, readdir(DIR));
closedir(DIR);
# Make sure we have something
# Replace the string
foreach $line (@Lines) {
- $line =~ s/openssl\-[0-9]+\.[0-9]+\.[0-9]+[a-z]/$substr/gi;
+ $line =~ s/openssl-[0-9]+\.[0-9]+\.[0-9]+[a-z]/$substr/gi;
}
#update the file
open (RFILE, ">$filename") || die "Can't open file $filename: $!";