From baaa5bacddd7b854b10f35d97716031a4d434d66 Mon Sep 17 00:00:00 2001 From: erg Date: Mon, 25 Apr 2005 02:55:01 +0000 Subject: [PATCH] Change lefty to print graphviz version info as well on -V flag --- cmd/lefty/lefty.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmd/lefty/lefty.c b/cmd/lefty/lefty.c index 7423a894a..0b87a7f77 100644 --- a/cmd/lefty/lefty.c +++ b/cmd/lefty/lefty.c @@ -16,6 +16,10 @@ /* Lefteris Koutsofios - AT&T Labs Research */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #define LEFTYVERSION "10 Mar 2005" #include "common.h" @@ -438,8 +442,10 @@ static void processargs (int argc, char *argv[]) { warnflag = TRUE; else if (strcmp (argv[0], "-ps") == 0) Gpscanvasname = argv[1], argv++, argc--; - else if (strcmp (argv[0], "-V") == 0) + else if (strcmp (argv[0], "-V") == 0) { fprintf (stderr, "lefty version %s\n", LEFTYVERSION); + fprintf (stderr, "graphviz version %s (%s)\n", VERSION, BUILDDATE); + } else if (strcmp (argv[0], "-") == 0) fp = stdin; else { -- 2.40.0