From: erg Date: Mon, 25 Apr 2005 02:55:01 +0000 (+0000) Subject: Change lefty to print graphviz version info as well on -V flag X-Git-Tag: LAST_LIBGRAPH~32^2~7632 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=baaa5bacddd7b854b10f35d97716031a4d434d66;p=graphviz Change lefty to print graphviz version info as well on -V flag --- 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 {