Skip to content

Commit 201c0f2

Browse files
committed
Code clean-up and refactoring.
1 parent 8bb9057 commit 201c0f2

File tree

5 files changed

+159
-97
lines changed

5 files changed

+159
-97
lines changed

etc/resources/tee.rc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
//
33
// Microsoft Visual C++ generated resource script.
44
//
5+
#define _INCLUDE_VERSION_H 1
6+
#include "version.h"
7+
58
#define APSTUDIO_READONLY_SYMBOLS
69
#include "WinResrc.h"
710
#undef APSTUDIO_READONLY_SYMBOLS
811

9-
#define MY_VERSION_MAJOR 1
10-
#define MY_VERSION_MINOR 2
11-
#define MY_VERSION_PATCH 0
12-
1312
#define MY_VERSION_NUMBER MY_VERSION_MAJOR, MY_VERSION_MINOR, MY_VERSION_PATCH, 0
1413
#define ___MY_VERSION_STRING(X) #X
1514
#define __MY_VERSION_STRING(X,Y,Z) ___MY_VERSION_STRING(X.Y.Z)
@@ -66,7 +65,7 @@ BEGIN
6665
VALUE "FileDescription", "tee for Windows " MY_ARCH_SUFFIX
6766
VALUE "ProductVersion", MY_VERSION_STRING
6867
VALUE "FileVersion", MY_VERSION_STRING
69-
VALUE "InternalName", "tee"
68+
VALUE "InternalName", "tee-win32"
7069
VALUE "OriginalFilename", "tee.exe"
7170
VALUE "LegalCopyright", "Copyright (c) 2023 dEajL3kA <[email protected]>"
7271
VALUE "CompanyName", "dEajL3kA"

etc/resources/version.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* tee for Windows
3+
* Copyright (c) 2023 "dEajL3kA" <[email protected]>
4+
*
5+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
6+
* associated documentation files (the "Software"), to deal in the Software without restriction,
7+
* including without limitation the rights to use, copy, modify, merge, publish, distribute,
8+
* sub license, and/or sell copies of the Software, and to permit persons to whom the Software is
9+
* furnished to do so, subject to the following conditions: The above copyright notice and this
10+
* permission notice shall be included in all copies or substantial portions of the Software.
11+
*
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
13+
* NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
14+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
15+
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
16+
* OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17+
*/
18+
#if (!(_INCLUDE_VERSION_H))
19+
#error _INCLUDE_VERSION_H is not defined!
20+
#endif
21+
22+
#define MY_VERSION_MAJOR 1
23+
#define MY_VERSION_MINOR 2
24+
#define MY_VERSION_PATCH 0

0 commit comments

Comments
 (0)