diff options
author | Roy Marples <roy@marples.name> | 2008-03-05 17:31:19 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-05 17:31:19 +0000 |
commit | 19bad914bc8e822e11c716b1444656edaa0ea608 (patch) | |
tree | 6b2621595899f4a7839b99601c65f8d59f4a8887 /src | |
parent | 8f1cb8798102d78fcf2833564bde4a57e3f7ff6e (diff) |
Show version similar to gcc.
Diffstat (limited to 'src')
-rw-r--r-- | src/rc/rc.c | 12 |
1 files 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); } |