From d0d547746bc9533ad9e1e470aa2a503f8342e234 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 5 Jul 2012 08:10:20 +0000 Subject: [PATCH] DISTRIB_DESCRIPTION added to global version git-svn-id: https://svn.fhem.de/fhem/trunk@1686 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index e6ed3bb2e..52123e6ac 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -1620,6 +1620,12 @@ GlobalAttr($$) opendir(DH, $modpath) || return "Can't read $modpath: $!"; push @INC, $modpath if(!grep(/$modpath/, @INC)); + eval { + use vars qw($DISTRIB_DESCRIPTION); + require "FhemUtils/release.pm"; + $attr{global}{version} = "$DISTRIB_DESCRIPTION, $cvsid"; + }; +Log 1, "EVAL:$@"; my $counter = 0; foreach my $m (sort readdir(DH)) { @@ -2236,7 +2242,6 @@ doGlobalDef($) CommandAttr(undef, "global verbose 3"); CommandAttr(undef, "global configfile $arg"); CommandAttr(undef, "global logfile -"); - CommandAttr(undef, "global version =VERS= from =DATE= ($cvsid)"); } #####################################