From: miljenko Date: Mon, 27 Oct 2008 12:46:28 +0000 (+0000) Subject: IMUNES version is now extracted from the CVS info in *.tcl files. X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=eeeacbd56611995172261a61b3eeff2c14d7fa9a;p=imunes.git IMUNES version is now extracted from the CVS info in *.tcl files. Bug found by: Submitted by: Reviewed by: Approved by: Obtained from: --- diff --git a/imunes b/imunes index a2338f0..9c5650c 100755 --- 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 "$@"