2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

98_version: fix perl warning, add commandref hint for loaded JavaScript files. (Forum: #48362)

git-svn-id: https://svn.fhem.de/fhem/trunk@13628 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2017-03-06 20:43:50 +00:00
parent 8d49f7d5ee
commit 8699cbd44c

View File

@ -29,6 +29,7 @@ CommandVersion($$)
push @ret, cfgDB_svnId() if(configDBUsed());
@files = () if($param && $param eq "revision");
foreach my $fn (@files) {
next unless($fn);
next unless($fn =~ /^(?:$modpath.?)?FHEM/ or $fn =~ /fhem.pl$/); # configDB
my $mod_name = ($fn=~ /[\/\\]([^\/\\]+)$/ ? $1 : $fn);
next if($param ne "" && $mod_name !~ /$param/);
@ -132,6 +133,8 @@ sub version_getRevFromControls(;$)
only the latest revision number since the last update.<br><br>
The optional flag <code>noheader</code> disables the output of the header lines (Latest Revision, File, Rev, Last Change).
<br><br>
When issued via FHEMWEB command line, all executed JavaScript files with their corresponding version will be listed additionally.
<br><br>
Example output of <code>version</code>:
<ul>
<code><br>
@ -177,6 +180,8 @@ sub version_getRevFromControls(;$)
<br><br>
Der optionale Parameter <code>noheader</code> unterdr&uuml;ckt die Ausgabe des Listenkopfs (Latest Revision, File, Rev, Last Change).
<br><br>
Wenn dieser Befehl &uuml;ber die FHEMWEB-Kommandozeile eingegeben wird, werden zus&auml;tzlich alle aktuell geladenen JavaScript-Dateien mit ihren zugeh&ouml;rigen Versionsinformationen angezeigt.
<br><br>
Beispiel der Ausgabe von <code>version</code>:
<ul>
<code><br>
@ -208,4 +213,4 @@ sub version_getRevFromControls(;$)
</ul>
=end html_DE
=cut
=cut