リビジョン | 065ab3b4065a0065b5013107cd3a24e8b6cbfa57 (tree) |
---|---|
日時 | 2014-08-16 23:58:40 |
作者 | maqiyuan <maqiyuan@user...> |
コミッター | maqiyuan |
removed unused module
@@ -1,79 +0,0 @@ | ||
1 | -rc_header = [[ | |
2 | -/* script for resources generationl. (TeXLive/W32TeX) | |
3 | - | |
4 | - Copyright 2014 Clerk Ma. | |
5 | - | |
6 | - This program is free software; you can redistribute it and/or modify | |
7 | - it under the terms of the GNU General Public License as published by | |
8 | - the Free Software Foundation; either version 2 of the License, or | |
9 | - (at your option) any later version. | |
10 | - | |
11 | - This program is distributed in the hope that it will be useful, but | |
12 | - WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 | - General Public License for more details. | |
15 | - | |
16 | - You should have received a copy of the GNU General Public License | |
17 | - along with this program; if not, write to the Free Software | |
18 | - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | |
19 | - 02110-1301 USA. */ | |
20 | - | |
21 | -#include <windows.h> | |
22 | - | |
23 | -]] | |
24 | - | |
25 | -rc_dist = [[ | |
26 | -#ifdef RCWIN32 | |
27 | - #define TEX_DIST "(W32TeX)" | |
28 | -#else | |
29 | - #define TEX_DIST "(TeXLive)" | |
30 | -#endif | |
31 | - | |
32 | -]] | |
33 | - | |
34 | -rc_prev = [[ | |
35 | -{ | |
36 | - BLOCK "StringFileInfo" | |
37 | - { | |
38 | - BLOCK "040904b0" | |
39 | - { | |
40 | -]] | |
41 | -rc_tail = [[ | |
42 | - } | |
43 | - } | |
44 | - BLOCK "VarFileInfo" | |
45 | - { | |
46 | - VALUE "Translation", 0x409, 1252 | |
47 | - } | |
48 | -} | |
49 | -]] | |
50 | - | |
51 | -rc_db = { | |
52 | - {file_name = "yanytex.exe", file_ver = "0,3,0,0", product_ver = "2,3,0,0"}, | |
53 | - {file_name = "checktfm.exe", file_ver = "0,3,0,0", product_ver = "2,3,0,0"}, | |
54 | - {file_name = "dvidump.exe", file_ver = "0,3,0,0", product_ver = "2,3,0,0"} | |
55 | -} | |
56 | - | |
57 | -function gen_rc(entry) | |
58 | - local rc_file | |
59 | - rc_file = io.open(string.sub(entry.file_name, 1, -4).."rc", "w") | |
60 | - rc_file:write(rc_header) | |
61 | - rc_file:write(rc_dist) | |
62 | - rc_file:write("VS_VERSION_INFO VERSIONINFO\n") | |
63 | - rc_file:write(" FILEVERSION "..entry.file_ver.."\n") | |
64 | - rc_file:write(" PRODUCTVERSION "..entry.product_ver.."\n") | |
65 | - rc_file:write(" FILEOS VOS__WINDOWS32\n") | |
66 | - rc_file:write(" FILETYPE VFT_APP\n") | |
67 | - rc_file:write(rc_prev) | |
68 | - rc_file:write(" VALUE \"CompanyName\", \"Project Fandol.\\0\"\n") | |
69 | - rc_file:write(" VALUE \"FileDescription\", \"Y&Y TeX 2.2.3\" TEX_DST \"\\0\"\n") | |
70 | - rc_file:write(" VALUE \"FileVersion\", \""..entry.file_ver.."\\0\"\n") | |
71 | - rc_file:write(" VALUE \"LegalCopyright\", \"(C) 2014 Clerk Ma.\\0\"\n") | |
72 | - rc_file:write(" VALUE \"OriginalFilename\", \""..entry.file_name.."\\0\"\n") | |
73 | - rc_file:write(" VALUE \"ProductName\", \"Y&Y TeX\\0\"\n") | |
74 | - rc_file:write(" VALUE \"ProductVersion\", \"2.2.3.0\\0\"\n") | |
75 | - rc_file:write(rc_tail) | |
76 | - rc_file:close() | |
77 | -end | |
78 | - | |
79 | -gen_rc({file_name = "yanytex.exe", file_ver = "0,3,0,0", product_ver = "2,3,0,0"}) |