2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

DISTRIB_DESCRIPTION added to global version

git-svn-id: https://svn.fhem.de/fhem/trunk@1686 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2012-07-05 08:10:20 +00:00
parent 71e43a64d4
commit d0d547746b

View File

@ -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)");
}
#####################################