[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: batch testing gschem features



On 10/12/10, Peter TB Brett <peter@xxxxxxxxxxxxx> wrote:
> Why oh why doesn't gschem --version DTRT?
>
> Peter :-(

Does it mean that a change like in the attachment has any chance
in future gschem development?

Cheers,
Ineiev
From 13ca491fba616a0cc0e8457d32d05529c4daa405 Mon Sep 17 00:00:00 2001
From: ineiev <dti@desdichado.(none)>
Date: Tue, 12 Oct 2010 15:13:14 +0400
Subject: [PATCH] display version string in verbose mode

---
 gschem/src/parsecmd.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/gschem/src/parsecmd.c b/gschem/src/parsecmd.c
index 8b72d6a..4ccdacc 100644
--- a/gschem/src/parsecmd.c
+++ b/gschem/src/parsecmd.c
@@ -18,6 +18,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
  */
 #include <config.h>
+#include <version.h>
 
 #include <stdio.h>
 #ifdef HAVE_UNISTD_H
@@ -111,5 +112,10 @@ int parse_commandline(int argc, char *argv[])
     verbose_mode = FALSE;
   }
 
+  if (verbose_mode) {
+    printf("gEDA/gschem version %s%s.%s\n", PREPEND_VERSION_STRING,
+            PACKAGE_DOTTED_VERSION, PACKAGE_DATE_VERSION);
+  }
+
   return(optind);
 }
-- 
1.6.0.4


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user