File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 3
3
#
4
4
MAJOR_VERSION =0
5
5
MINOR_VERSION =1
6
+ RC_VERSION =1
6
7
BASEDIR := $(shell pwd)
7
8
DM_OBJDIR ?= $(CURDIR ) /build
8
9
@@ -111,6 +112,7 @@ include/version.h:
111
112
cat license_header > include/version.h; \
112
113
echo " #define DM_MAJOR_VERSION $( MAJOR_VERSION) " >> include/version.h; \
113
114
echo " #define DM_MINOR_VERSION $( MINOR_VERSION) " >> include/version.h; \
115
+ echo " #define DM_RC_VERSION $( RC_VERSION) " >> include/version.h; \
114
116
echo " #define DM_BUILD_VERSION " \" " $$ PATCH" \" " " >> include/version.h; \
115
117
echo " #define DM_BUILD_TIME " \" " $$ TIME" \" " " >> include/version.h; \
116
118
echo " #define DM_BUILD_USER " \" " $( USER) " \" " " >> include/version.h
Original file line number Diff line number Diff line change @@ -160,9 +160,14 @@ usage(int code)
160
160
static void
161
161
print_version (void )
162
162
{
163
- fprintf (stderr , "DM version is: %d.%d-%s, build by %s@%s\n" ,
164
- DM_MAJOR_VERSION , DM_MINOR_VERSION , DM_BUILD_VERSION ,
165
- DM_BUILD_USER , DM_BUILD_TIME );
163
+ if (DM_RC_VERSION )
164
+ fprintf (stderr , "DM version is: %d.%d-%d-%s, build by %s@%s\n" ,
165
+ DM_MAJOR_VERSION , DM_MINOR_VERSION , DM_RC_VERSION ,
166
+ DM_BUILD_VERSION , DM_BUILD_USER , DM_BUILD_TIME );
167
+ else
168
+ fprintf (stderr , "DM version is: %d.%d-%s, build by %s@%s\n" ,
169
+ DM_MAJOR_VERSION , DM_MINOR_VERSION , DM_BUILD_VERSION ,
170
+ DM_BUILD_USER , DM_BUILD_TIME );
166
171
167
172
exit (0 );
168
173
}
You can’t perform that action at this time.
0 commit comments