From 19bad914bc8e822e11c716b1444656edaa0ea608 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 5 Mar 2008 17:31:19 +0000 Subject: [PATCH] Show version similar to gcc. --- src/rc/rc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/rc/rc.c b/src/rc/rc.c index d8438c53..9dc8b0cf 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -690,14 +690,14 @@ int main (int argc, char **argv) eerrorx ("arguments required"); if (argc > 1 && (strcmp (argv[1], "--version") == 0)) { - printf ("%s (OpenRC" -#ifdef BRANDING - " - " BRANDING -#endif - ")", applet); + printf ("%s (OpenRC", applet); if (sys) printf (" [%s]", sys); - printf (" version " VERSION "\n"); + printf (") " VERSION +#ifdef BRANDING + " (" BRANDING ")" +#endif + "\n"); exit (EXIT_SUCCESS); }