Skip to content

Commit 408bd95

Browse files
authored
Merge pull request #2321 from jwillemsen/jwi-PATCHversion
Add PATCH and TAO_PATCH as postfix strings for the versions printed by tao_idl/ifr to let the user set its own patch postfix
2 parents 61efbfd + 60ae065 commit 408bd95

File tree

7 files changed

+16
-5
lines changed

7 files changed

+16
-5
lines changed

ACE/ace/Version.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@
77
#define ACE_MICRO_VERSION 2
88
#define ACE_VERSION "8.0.2"
99
#define ACE_VERSION_CODE 0x80002
10+
#if !defined (ACE_PATCH)
11+
# define ACE_PATCH ""
12+
#endif
1013
#define ACE_MAKE_VERSION_CODE(a,b,c) (((a) << 16) + ((b) << 8) + (c))

ACE/bin/make_release.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ def update_version_files (component):
230230
#define {comp}_MICRO_VERSION {micro}
231231
#define {comp}_VERSION \"{version}\"
232232
#define {comp}_VERSION_CODE 0x{code:x}
233+
#if !defined ({comp}_PATCH)
234+
# define {comp}_PATCH \"\"
235+
#endif
233236
#define {comp}_MAKE_VERSION_CODE(a,b,c) (((a) << 16) + ((b) << 8) + (c))
234237
""".format(**parts)
235238

TAO/TAO_IDL/be/be_helper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
static const char copyright[] =
2525
"// -*- C++ -*-\n"
2626
"/**\n"
27-
" * Code generated by the The ACE ORB (TAO) IDL Compiler v" TAO_VERSION "\n"
27+
" * Code generated by the The ACE ORB (TAO) IDL Compiler v" TAO_VERSION TAO_PATCH "\n"
2828
" * TAO and the TAO IDL Compiler have been developed by:\n"
2929
" * Center for Distributed Object Computing\n"
3030
" * Washington University\n"

TAO/TAO_IDL/be/be_init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TAO_IDL_BE_Export void
66
BE_version ()
77
{
88
ACE_DEBUG ((LM_DEBUG,
9-
ACE_TEXT ("TAO_IDL_BE, version ") ACE_TEXT (TAO_VERSION)
9+
ACE_TEXT ("TAO_IDL_BE, version ") ACE_TEXT (TAO_VERSION) ACE_TEXT (TAO_PATCH)
1010
ACE_TEXT ("\n")));
1111
}
1212

TAO/TAO_IDL/tao_idl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ DRV_version ()
100100
{
101101
ACE_DEBUG ((LM_DEBUG,
102102
"%C\n"
103-
"TAO_IDL_FE, version %s (Based on Sun IDL FE, version %s)\n",
103+
"TAO_IDL_FE, version %s%s (Based on Sun IDL FE, version %s)\n",
104104
idl_global->prog_name (),
105105
ACE_TEXT (TAO_VERSION),
106+
ACE_TEXT (TAO_PATCH),
106107
ACE_TEXT (SUN_IDL_FE_VERSION)));
107108

108109
BE_version ();

TAO/orbsvcs/IFR_Service/be_init.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ TAO_IFR_BE_Export void
8989
BE_version ()
9090
{
9191
ORBSVCS_DEBUG ((LM_DEBUG,
92-
"%s %s\n",
92+
"%s %s%s\n",
9393
ACE_TEXT ("TAO_IFR_BE, version"),
94-
ACE_TEXT (TAO_VERSION)));
94+
ACE_TEXT (TAO_VERSION),
95+
ACE_TEXT (TAO_PATCH)));
9596
}
9697

9798
TAO_IFR_BE_Export int

TAO/tao/Version.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@
77
#define TAO_MICRO_VERSION 2
88
#define TAO_VERSION "4.0.2"
99
#define TAO_VERSION_CODE 0x40002
10+
#if !defined (TAO_PATCH)
11+
# define TAO_PATCH ""
12+
#endif
1013
#define TAO_MAKE_VERSION_CODE(a,b,c) (((a) << 16) + ((b) << 8) + (c))

0 commit comments

Comments
 (0)