]> granicus.if.org Git - graphviz/commitdiff
Change lefty to print graphviz version info as well on -V flag
authorerg <devnull@localhost>
Mon, 25 Apr 2005 02:55:01 +0000 (02:55 +0000)
committererg <devnull@localhost>
Mon, 25 Apr 2005 02:55:01 +0000 (02:55 +0000)
cmd/lefty/lefty.c

index 7423a894ae95f92da8045221858b86f6966ac7dd..0b87a7f7713d82efa3dd316f179529122350bf8c 100644 (file)
 
 /* 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 {