Show version similar to gcc.
This commit is contained in:
		
							
								
								
									
										12
									
								
								src/rc/rc.c
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								src/rc/rc.c
									
									
									
									
									
								
							| @@ -690,14 +690,14 @@ int main (int argc, char **argv) | |||||||
| 		eerrorx ("arguments required"); | 		eerrorx ("arguments required"); | ||||||
|  |  | ||||||
| 	if (argc > 1 && (strcmp (argv[1], "--version") == 0)) { | 	if (argc > 1 && (strcmp (argv[1], "--version") == 0)) { | ||||||
| 		printf ("%s (OpenRC" | 		printf ("%s (OpenRC", applet); | ||||||
| #ifdef BRANDING |  | ||||||
| 			" - " BRANDING |  | ||||||
| #endif |  | ||||||
| 			")", applet); |  | ||||||
| 		if (sys) | 		if (sys) | ||||||
| 			printf (" [%s]", sys); | 			printf (" [%s]", sys); | ||||||
| 		printf (" version " VERSION "\n"); | 		printf (") " VERSION | ||||||
|  | #ifdef BRANDING | ||||||
|  | 			" (" BRANDING ")" | ||||||
|  | #endif | ||||||
|  | 			"\n"); | ||||||
| 		exit (EXIT_SUCCESS); | 		exit (EXIT_SUCCESS); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user