gharris999 wrote:
> >
Code:
--------------------
> >
> # if we're running from a git clone, report the last commit ID and
timestamp
> if ( $revision eq 'TRUNK' && `git -C /usr/local/share/lms/server show
-s --format=%h\\|%ci 2> /dev/null` =~ /^([0-9a-f]+)\|(\d{4}-\d\d-\d\d.*)/i ) {
> $revision = 'git-' . $1;
> $builddate = $2;
> }
>
--------------------
> >
>
> ..then all is good and the webUI->Settings->Information page lists
> "Logitech Media Server Version: 7.9.0 - git-99c17a4 @ 2016-04-28
> 23:40:50 +0200".
>
> What's the proper LMS way to get the directory for slimserver.pl at
> runtime?
Would this work for you?
Code:
--------------------
if ( $revision eq 'TRUNK' && `git -C $Bin show -s --format=%h\\|%ci 2>
/dev/null` =~ /^([0-9a-f]+)\|(\d{4}-\d\d-\d\d.*)/i ) {
--------------------
Michael
http://www.herger.net/slim-plugins - MusicArtistInfo, MusicInfoSCR,
Smart Mix
------------------------------------------------------------------------
mherger's Profile: http://forums.slimdevices.com/member.php?userid=50
View this thread: http://forums.slimdevices.com/showthread.php?t=105518
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta