MT-ModCheck 1.0.0 »
MT-ModCheck: Check the installation of a particular Perl module.
A Plugin for Movable Type
Release 1.0.0
September 16, 2003
http://www.everitz.com/sol/mt-modcheck/index.php
If you find the software useful or even like it, then a simple 'thank you' is always appreciated. A reference back to me is even nicer. If you find a way to make money from the software, do what you feel is right.
Copyright Everitz Consulting
This Movable Type plugin allows you to verify the correct installation of a Perl module.
Installation:
To install, place the ModCheck.pl file in your Movable Type "plugins" directory. If you do not have a Movable Type plugins directory, create one, then put the ModCheck.pl file in it. Refer to the Movable Type documentation for more information regarding plugins.
With all modules that you put on your server, make sure that they are executable. Permissions of 755 ought to work fine.
Tag information:
<$MTModCheck module="Time::JulianDay"$>
The module attribute is required, as it specifies the module to verify. The spelling and case of the module are important, as are any separators (::) found within the module name. Time::JulianDay is simply given as an example for the purpose of documentation.
If you include the <$MTModCheck$> tag without the module attribute or with an empty module attribute (module=""), compilation will continue as if the tag did not exist. Because of this behavior, you can leave the <$MTModCheck$> tag in your templates without the module attribute, or with an empty module attribute, and only add the attribute (or the module name) when needed.
When included in a template, the <$MTModCheck$> tag will create an error message during the build. This error occurs whether the module is installed or not. Read the error message to verify the status of the module. You will receive one of three messages:
Your server has Time::JulianDay installed (version 99.061501). -or-
Your server has Time::JulianDay installed. -or-
Your server does not have Time::JulianDay installed.
If installed, the version number is returned if available.
Make sure to include the full module name - for instance, Time::JulianDay and not just JulianDay. MT::Template::Context and not just Context, or even Template::Context. The plugin will currently handle modules installed in lib and extlib - not plugins. I may work on that for a future release.
Future revisions may also include different output types or iterating through all of the installed modules or something along those lines - for now, the one tag is all there is.




















