mkrc.pl (1.1.1.2) | mkrc.pl (1.1.1.3) |
---|---|
1#!/bin/env perl | 1#! /usr/bin/env perl 2# Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved. |
2# | 3# |
3open FD,"crypto/opensslv.h"; | 4# Licensed under the OpenSSL license (the "License"). You may not use 5# this file except in compliance with the License. You can obtain a copy 6# in the file LICENSE in the source distribution or at 7# https://www.openssl.org/source/license.html 8 9use lib "."; 10use configdata; 11use File::Spec::Functions; 12 13my $versionfile = catfile($config{sourcedir},"include/openssl/opensslv.h"); 14 15open FD, $versionfile or die "Couldn't open include/openssl/opensslv.h: $!\n"; |
4while(<FD>) { 5 if (/OPENSSL_VERSION_NUMBER\s+(0x[0-9a-f]+)/i) { 6 $ver = hex($1); 7 $v1 = ($ver>>28); 8 $v2 = ($ver>>20)&0xff; 9 $v3 = ($ver>>12)&0xff; 10 $v4 = ($ver>> 4)&0xff; 11 $beta = $ver&0xf; --- 40 unchanged lines hidden (view full) --- 52 VALUE "FileDescription", "$description\\0" 53 VALUE "FileVersion", "$version\\0" 54 VALUE "InternalName", "$basename\\0" 55 VALUE "OriginalFilename", "$filename\\0" 56 VALUE "ProductName", "The OpenSSL Toolkit\\0" 57 VALUE "ProductVersion", "$version\\0" 58 // Optional: 59 //VALUE "Comments", "\\0" | 16while(<FD>) { 17 if (/OPENSSL_VERSION_NUMBER\s+(0x[0-9a-f]+)/i) { 18 $ver = hex($1); 19 $v1 = ($ver>>28); 20 $v2 = ($ver>>20)&0xff; 21 $v3 = ($ver>>12)&0xff; 22 $v4 = ($ver>> 4)&0xff; 23 $beta = $ver&0xf; --- 40 unchanged lines hidden (view full) --- 64 VALUE "FileDescription", "$description\\0" 65 VALUE "FileVersion", "$version\\0" 66 VALUE "InternalName", "$basename\\0" 67 VALUE "OriginalFilename", "$filename\\0" 68 VALUE "ProductName", "The OpenSSL Toolkit\\0" 69 VALUE "ProductVersion", "$version\\0" 70 // Optional: 71 //VALUE "Comments", "\\0" |
60 VALUE "LegalCopyright", "Copyright �� 1998-2006 The OpenSSL Project. Copyright �� 1995-1998 Eric A. Young, Tim J. Hudson. All rights reserved.\\0" | 72 VALUE "LegalCopyright", "Copyright 1998-2016 The OpenSSL Authors. All rights reserved.\\0" |
61 //VALUE "LegalTrademarks", "\\0" 62 //VALUE "PrivateBuild", "\\0" 63 //VALUE "SpecialBuild", "\\0" 64 END 65 END 66 BLOCK "VarFileInfo" 67 BEGIN 68 VALUE "Translation", 0x409, 0x4b0 69 END 70END 71___ | 73 //VALUE "LegalTrademarks", "\\0" 74 //VALUE "PrivateBuild", "\\0" 75 //VALUE "SpecialBuild", "\\0" 76 END 77 END 78 BLOCK "VarFileInfo" 79 BEGIN 80 VALUE "Translation", 0x409, 0x4b0 81 END 82END 83___ |