Do you have a question? Post it now! No Registration Necessary. Now with pictures!
October 27, 2008, 9:40 pm
rate this thread
I have a script that uses several home-grown modules.
These modules live in the directory "$FindBin::RealBin/lib" (here
$FindBin::RealBin stands for the parent directory of the script).
The script and all the modules are under revision control, via
OK, now I'd like a good way to cause the script to fail if it
detects that it (i.e. the copy of the software that is executing)
is not the most recently committed version.
Before I roll my own, I thought I'd ask around if there's already
a good way to do this.
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.
Re: subversion introspection
You want your script to "see" if all modules are the latest version(s)?
Maybe using the keywords property and put the version in a scalar, and
check this version in your script for all modules?
John http://johnbokma.com/ - Hacking & Hiking in Mexico
Perl help in exchange for a gift: