]> git.ipfire.org Git - thirdparty/openssl.git/blame - util/mkrc.pl
Document recent changes in NEWS and CHANGES
[thirdparty/openssl.git] / util / mkrc.pl
CommitLineData
e0a65194 1#! /usr/bin/env perl
c4d3c19b 2# Copyright 2006-2018 The OpenSSL Project Authors. All Rights Reserved.
5b50f99e 3#
9059ab42 4# Licensed under the Apache License 2.0 (the "License"). You may not use
e0a65194
RS
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
1407f856 8
199b2460
RS
9use strict;
10use warnings;
1407f856
RL
11use lib ".";
12use configdata;
1407f856 13
3a63dbef
RL
14my $cversion = "$config{major},$config{minor},$config{patch}";
15my $version = "$config{major}.$config{minor}.$config{patch}$config{prerelease}$config{build_metadata}";
5b50f99e 16
199b2460 17my $filename = $ARGV[0];
83900628
RS
18my $description = "OpenSSL library";
19my $vft = "VFT_DLL";
20if ( $filename =~ /openssl/i ) {
21 $description = "OpenSSL application";
22 $vft = "VFT_APP";
23}
5b50f99e 24
83900628 25my $YEAR = [localtime()]->[5] + 1900;
5b50f99e
AP
26print <<___;
27#include <winver.h>
28
29LANGUAGE 0x09,0x01
30
311 VERSIONINFO
3a63dbef
RL
32 FILEVERSION $cversion
33 PRODUCTVERSION $cversion
5b50f99e
AP
34 FILEFLAGSMASK 0x3fL
35#ifdef _DEBUG
36 FILEFLAGS 0x01L
37#else
38 FILEFLAGS 0x00L
39#endif
40 FILEOS VOS__WINDOWS32
83900628 41 FILETYPE $vft
5b50f99e
AP
42 FILESUBTYPE 0x0L
43BEGIN
44 BLOCK "StringFileInfo"
45 BEGIN
46 BLOCK "040904b0"
47 BEGIN
48 // Required:
af7d8d34 49 VALUE "CompanyName", "The OpenSSL Project, https://www.openssl.org/\\0"
5b50f99e
AP
50 VALUE "FileDescription", "$description\\0"
51 VALUE "FileVersion", "$version\\0"
83900628 52 VALUE "InternalName", "$filename\\0"
5b50f99e
AP
53 VALUE "OriginalFilename", "$filename\\0"
54 VALUE "ProductName", "The OpenSSL Toolkit\\0"
55 VALUE "ProductVersion", "$version\\0"
56 // Optional:
57 //VALUE "Comments", "\\0"
83900628 58 VALUE "LegalCopyright", "Copyright 1998-$YEAR The OpenSSL Authors. All rights reserved.\\0"
5b50f99e
AP
59 //VALUE "LegalTrademarks", "\\0"
60 //VALUE "PrivateBuild", "\\0"
61 //VALUE "SpecialBuild", "\\0"
62 END
63 END
64 BLOCK "VarFileInfo"
65 BEGIN
66 VALUE "Translation", 0x409, 0x4b0
67 END
68END
69___