]> git.entuzijast.net Git - imunes.git/commitdiff
IMUNES version is now extracted from the CVS info in *.tcl files.
authormiljenko <miljenko>
Mon, 27 Oct 2008 12:46:28 +0000 (12:46 +0000)
committermiljenko <miljenko>
Mon, 27 Oct 2008 12:46:28 +0000 (12:46 +0000)
Bug found by:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

imunes

diff --git a/imunes b/imunes
index a2338f02b382ffa200a3747cabba10c8d60d1910..9c5650c5947ed9ee36089ee31e5e3a6c25d96923 100755 (executable)
--- a/imunes
+++ b/imunes
@@ -27,7 +27,7 @@
 # and Technology through the research contract #IP-2003-143.
 #
 
-# $Id: imunes,v 1.11 2008/01/01 18:22:59 marko Exp $
+# $Id: imunes,v 1.12 2008/04/28 11:42:50 miljenko Exp $
 
 
 SHELL=/bin/sh
@@ -43,7 +43,11 @@ case $1 in
     exec tclsh8.4 $imunes "$@" 
     ;; 
 -v | --version) 
-    exec echo IMUNES version 2008-04-28
+    # exec echo IMUNES version 2008-04-28
+    last_changed=`grep '^# $Id: .*\$$' \
+                  $ROOTDIR/$LIBDIR/*.tcl /usr/local/bin/imunes | \
+                  sort +4 | tail -1 | cut -d' ' -f5`
+    exec echo IMUNES version $last_changed
     ;; 
 *) 
     exec wish8.4 $imunes "$@"