From: Richard Levitte Date: Fri, 22 Jan 2016 11:40:49 +0000 (+0100) Subject: Refactor file writing - adapt util/dofile.pl to use with_fallback X-Git-Tag: OpenSSL_1_1_0-pre3~447 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=632b3092807db45251711e39dcd7d55a16d12957;hp=8ff2af548303d311ce3591406111f77862875a60 Refactor file writing - adapt util/dofile.pl to use with_fallback Reviewed-by: Rich Salz --- diff --git a/util/dofile.pl b/util/dofile.pl index 4bf90babbf..74d1520ed0 100644 --- a/util/dofile.pl +++ b/util/dofile.pl @@ -7,7 +7,13 @@ use strict; use warnings; -use Text::Template; + +# Because we know that Text::Template isn't a core Perl module, we use +# a fallback in case it's not installed on the system +use File::Basename; +use File::Spec::Functions; +use lib catdir(dirname(__FILE__)); +use with_fallback qw(Text::Template); # We actually expect to get the following hash tables from configdata: #