2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

fhem.pl: version patch (Forum #41726)

git-svn-id: https://svn.fhem.de/fhem/trunk@9398 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-10-07 12:10:54 +00:00
parent 06186947bf
commit c7438a53a2

View File

@ -2654,10 +2654,10 @@ CommandVersion($$)
push @ret, grep(/\$Id. [^\$\n\r].+\$/, <FH>);
}
}
@ret = map {/\$Id. (\S+) (.+?)\$/ ? sprintf("%-".$max."s %s",$1,$2) : $_}
@ret = map {/\$Id. (\S+) (\d+) (.+?)\$/ ? sprintf("%-".$max."s %5d %s",$1,$2,$3) : $_}
@ret;
return sprintf("%-".$max."s %s","File","Rev Last Change\n\n").
return sprintf("%-".$max."s %s","File","Rev Last Change\n\n").
join("\n", grep((defined($param) ? ($_ =~ /$param/) : 1), @ret));
}