Hi Jesse,
You can do that with a bit of Tcl code that fetch the list of files in a
directory:
foreach version [glob -directory /publish/packagefoo -tails *] {
module-virtual packagefoo/$version
/publish/packagefoo/$version/packagefoo.module
}
Cheers,
Xavier
Le jeu. 5 mai 2022 à 22:11, Jesse Lucas via Modules-interest <
mod...@li...> a écrit :
> Is there any way to write a module-virtual pattern like...
>
> module-virtual packagefoo/@ /publish/packagefoo/@/packagefoo.module
>
> ...where modulecmd would interpolate @ as the requested version at runtime?
>
> I would like to be able to define a module-virtual "rule" that will catch
> all versions instead of having to maintain an RC file with one
> module-virtual statement per version.
>
> Cheers,
>
> J
>
>
>
>
>
> _______________________________________________
> Modules-interest mailing list
> Mod...@li...
> https://lists.sourceforge.net/lists/listinfo/modules-interest
>
|