use FindBin instead of awk to find the path to utils.pm (#1241)

Evgeni Golov notifications at github.com
Wed Feb 26 08:25:50 CET 2014


Thinking further, the following can now be removed from `subst.in`:

    # add to libexecdir to INC for perl utils.pm
    /^use/ { if (/lib/) { if (/utils.pm|"."/ ) {sub(/utils.pm|"."/,led() )} } }

Removing this would stop new contributions from accidentally using it again.

The whole `led()` function could be then removed too.

-- 
Reply to this email on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/pull/1241#issuecomment-36098237
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20140225/695831eb/attachment.html>


More information about the Devel mailing list