[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] [PATCH] add version string to -V options of dlm_tool and group deamons



Hello cluster developers,

i think this might be useful to packagers if they choose to build
individual packages from the cluster tarball.

Is there any special reason for commenting out the copyright string?

cheers,

Marc
diff -Nurp cluster-2.03.02.orig/dlm/tool/main.c cluster-2.03.02/dlm/tool/main.c
--- cluster-2.03.02.orig/dlm/tool/main.c	2008-04-28 16:48:33.000000000 +0200
+++ cluster-2.03.02/dlm/tool/main.c	2008-04-30 17:38:10.000000000 +0200
@@ -99,8 +99,8 @@ static void decode_arguments(int argc, c
 			break;
 
 		case 'V':
-			printf("%s (built %s %s)\n",
-				prog_name, __DATE__, __TIME__);
+			printf("%s %s (built %s %s)\n",
+				prog_name, RELEASE_VERSION, __DATE__, __TIME__);
 			/* printf("%s\n", REDHAT_COPYRIGHT); */
 			exit(EXIT_SUCCESS);
 			break;
diff -Nurp cluster-2.03.02.orig/group/daemon/main.c cluster-2.03.02/group/daemon/main.c
--- cluster-2.03.02.orig/group/daemon/main.c	2008-04-28 16:48:33.000000000 +0200
+++ cluster-2.03.02/group/daemon/main.c	2008-04-30 17:28:00.000000000 +0200
@@ -884,7 +884,8 @@ static void decode_arguments(int argc, c
 			break;
 
 		case 'V':
-			printf("groupd (built %s %s)\n", __DATE__, __TIME__);
+			printf("groupd %s (built %s %s)\n",
+				RELEASE_VERSION, __DATE__, __TIME__);
 			/* printf("%s\n", REDHAT_COPYRIGHT); */
 			exit(EXIT_SUCCESS);
 			break;
diff -Nurp cluster-2.03.02.orig/group/dlm_controld/main.c cluster-2.03.02/group/dlm_controld/main.c
--- cluster-2.03.02.orig/group/dlm_controld/main.c	2008-04-28 16:48:33.000000000 +0200
+++ cluster-2.03.02/group/dlm_controld/main.c	2008-04-30 17:29:22.000000000 +0200
@@ -784,7 +784,8 @@ static void decode_arguments(int argc, c
 			break;
 
 		case 'V':
-			printf("dlm_controld (built %s %s)\n", __DATE__, __TIME__);
+			printf("dlm_controld %s (built %s %s)\n",
+				RELEASE_VERSION, __DATE__, __TIME__);
 			/* printf("%s\n", REDHAT_COPYRIGHT); */
 			exit(EXIT_SUCCESS);
 			break;
diff -Nurp cluster-2.03.02.orig/group/gfs_controld/main.c cluster-2.03.02/group/gfs_controld/main.c
--- cluster-2.03.02.orig/group/gfs_controld/main.c	2008-04-28 16:48:33.000000000 +0200
+++ cluster-2.03.02/group/gfs_controld/main.c	2008-04-30 17:30:05.000000000 +0200
@@ -886,7 +886,8 @@ static void decode_arguments(int argc, c
 			break;
 
 		case 'V':
-			printf("gfs_controld (built %s %s)\n", __DATE__, __TIME__);
+			printf("gfs_controld %s (built %s %s)\n",
+				RELEASE_VERSION, __DATE__, __TIME__);
 			/* printf("%s\n", REDHAT_COPYRIGHT); */
 			exit(EXIT_SUCCESS);
 			break;
diff -Nurp cluster-2.03.02.orig/group/tool/main.c cluster-2.03.02/group/tool/main.c
--- cluster-2.03.02.orig/group/tool/main.c	2008-04-28 16:48:33.000000000 +0200
+++ cluster-2.03.02/group/tool/main.c	2008-04-30 17:36:12.000000000 +0200
@@ -132,8 +132,8 @@ static void decode_arguments(int argc, c
 			break;
 
 		case 'V':
-			printf("%s (built %s %s)\n",
-				prog_name, __DATE__, __TIME__);
+			printf("%s %s (built %s %s)\n",
+				prog_name, RELEASE_VERSION, __DATE__, __TIME__);
 			/* printf("%s\n", REDHAT_COPYRIGHT); */
 			exit(EXIT_SUCCESS);
 			break;

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]