提交 c680f77f 编写于 作者: R Richard Levitte

Adjust transfer::Text::Template.pm for alternate directory name

On VMS, periods in directory names weren't allowed.  To counter that,
unpackers such as VMSTAR convert periods in directory names to
underscores.  We need to count that in and add an alternative library
path for Text::Template.
Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 a7626557
...@@ -5,9 +5,11 @@ ...@@ -5,9 +5,11 @@
BEGIN { BEGIN {
use File::Spec::Functions; use File::Spec::Functions;
use File::Basename; use File::Basename;
use lib catdir(dirname(__FILE__), "..", "..", use lib catdir(dirname(__FILE__), "..", "..", "Text-Template-1.46", "lib");
"Text-Template-1.46", "lib"); # Some unpackers on VMS convert periods in directory names to underscores
use lib catdir(dirname(__FILE__), "..", "..", "Text-Template-1_46", "lib");
use Text::Template; use Text::Template;
shift @INC; # Takes away the effect of use lib shift @INC; # Takes away the effect of use lib
shift @INC; # Takes away the effect of use lib
} }
1; 1;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册