util/dofile.pl, util/perl/OpenSSL/Template.pm: move parts of dofile.pl
authorRichard Levitte <levitte@openssl.org>
Sun, 25 Aug 2019 08:44:41 +0000 (10:44 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 12 Sep 2019 16:19:27 +0000 (18:19 +0200)
commit486f149131e94c970da1b89ebe8c66ab88e5d343
treecc8e9e7c338b43980819fc3de198ddc9c9fc04df
parentd4830d018dfdab5d5d497d88207ee8f1761cf878
util/dofile.pl, util/perl/OpenSSL/Template.pm: move parts of dofile.pl

We make a module OpenSSL::Template from the central parts of
util/dofile.pl, and also reduce the amount of ugly code with more
proper use of Text::Template.  OpenSSL::Template is a simply subclass
of Text::Template.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9693)
util/dofile.pl
util/perl/OpenSSL/Template.pm [new file with mode: 0644]