[Rt-devel] RTx::EmailCompletion and rt 3.8 and scriptaculous
Nicolas Chuche
nicolas.chuche at barna.be
Wed Aug 20 07:15:47 EDT 2008
> { # check RT version
> my @v = split /\./, "$RT::VERSION";
> unless (($v[0]>=3 && $v[1]>=8) || $v[0]>3) {
> die "Extension needs RT 3.8.0 at least, you have $RT::VERSION";
> }
> }
The problem isn't really in this part. I've read that I can use
$RT::VERSION in my Makefile.PL
My problem is how to :
1. deploy all my javascript found in ./html/NoAuth/ if $RT::VERSION < 3.8
2. deploy only ./html/NoAuth/js/emailcompletion.js if $RT::VERSION >= 3.8
I know I must modify the last line of my Makefile :
install ::
$(NOECHO) $(PERL) -MExtUtils::Install -e "install({q(html),
q(/opt/rt3/share/html), q(lib), q(/opt/rt3/local/lib)})"
But don't know how to do this with Module::Install.
More information about the Rt-devel
mailing list