comparison freeDiameterd/main.c @ 1159:05f74dc19c49

Include source rev number in version information when available
author Sebastien Decugis <sdecugis@freediameter.net>
date Fri, 31 May 2013 11:20:27 +0800
parents 51ce5a30df2d
children cc96a4dfb3d1
comparison
equal deleted inserted replaced
1158:f1cadf58b86f 1159:05f74dc19c49
108 108
109 109
110 /* Display package version */ 110 /* Display package version */
111 static void main_version_core(void) 111 static void main_version_core(void)
112 { 112 {
113 printf("%s, version %d.%d.%d" 113 printf("%s, version %s\n", FD_PROJECT_NAME, fd_core_version);
114 #ifdef HG_VERSION
115 " (r%s"
116 # ifdef PACKAGE_HG_REVISION
117 "/%s"
118 # endif /* PACKAGE_HG_VERSION */
119 ")"
120 #endif /* HG_VERSION */
121 " (libfdcore: %s)\n",
122 FD_PROJECT_NAME, FD_PROJECT_VERSION_MAJOR, FD_PROJECT_VERSION_MINOR, FD_PROJECT_VERSION_REV
123 #ifdef HG_VERSION
124 , HG_VERSION
125 # ifdef PACKAGE_HG_REVISION
126 , PACKAGE_HG_REVISION
127 # endif /* PACKAGE_HG_VERSION */
128 #endif /* HG_VERSION */
129 , fd_core_version());
130 } 114 }
131 115
132 /* Display package version and general info */ 116 /* Display package version and general info */
133 static void main_version(void) 117 static void main_version(void)
134 { 118 {
"Welcome to our mercurial repository"