openssl/util
Richard Levitte 291e94df90 Refactor file writing - introduce template driven file writing
apps/CA.pl and tools/c_rehash are built from template files.  So far,
this was done by Configure, which created its own problems as it
forced everyone to reconfigure just because one of the template files
had changed.
Instead, have those files created as part of the normal build in apps/
and in tools/.

Furthermore, this prepares for a future where Configure may produce
entirely other build files than Makefile, and the latter can't be
guaranteed to be the holder of all information for other scripts.
Instead, configdata.pm (described below) becomes the center of
configuration information.

This introduces a few new things:

%config         a hash table to hold all kinds of configuration data
                that can be used by any other script.
configdata.pm   a perl module that Configure writes.  It currently
                holds the hash tables %config and %target.
util/dofile.pl  a script that takes a template on STDIN and outputs
                the result after applying configuration data on it.
                It's supposed to be called like this:

                        perl -I$(TOP) -Mconfigdata < template > result

                or

                        perl -I$(TOP) -Mconfigdata templ1 templ2 ... > result

                Note: util/dofile.pl requires Text::Template.

As part of this changed, remove a number of variables that are really
just copies of entries in %target, and use %target directly.  The
exceptions are $target{cflags} and $target{lflags}, they do get copied
to $cflags and $lflags.  The reason for this is that those variable
potentially go through a lot of changes and would rather deserve a
place in %config.  That, however, is for another commit.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-01-22 23:12:22 +01:00
..
pl Enable/disable crypto-mdebug just like other features 2016-01-11 02:41:16 +00:00
TLSProxy Prefer ReuseAddr over Reuse, with IO::Socket::INET 2015-12-29 17:36:08 +01:00
add_cr.pl
bat.sh Remove all remaining traces if PEM_Seal 2016-01-08 01:18:55 +01:00
ck_errf.pl Allow for types with leading underscore when checking error macros. 2015-04-28 14:34:58 +02:00
clean-depend.pl Improve make depend. 2015-10-24 17:34:21 +01:00
copy-if-different.pl
copy.pl
cygwin.sh
deltree.com
dirname.pl
do_ms.sh
dofile.pl Refactor file writing - introduce template driven file writing 2016-01-22 23:12:22 +01:00
domd Don't use "grep -q", "-q" is not POSIX, and fails on Solaris. 2016-01-18 16:16:20 +01:00
extract-names.pl
extract-section.pl
files.pl Improve variable parsing when generating MINFO 2014-11-16 16:44:44 -05:00
fipslink.pl
fixNT.sh
FreeBSD.sh
incore util/incore update. 2015-05-13 17:23:48 +02:00
indent.pro Async port to windows 2015-11-20 23:32:18 +00:00
install.sh
libeay.num Remove the GOST engine 2016-01-19 22:29:32 +00:00
mk1mf.pl Refresh the thinking of --prefix and --openssldir 2016-01-22 00:52:31 +01:00
mkbuildinf.pl Fix build failure on Windows due to undefined cflags identifier 2015-01-08 19:21:24 +00:00
mkcerts.sh Fix verify(1) to report failure when verification fails 2016-01-13 17:55:17 -05:00
mkdef.pl Avoid the r modifier for s/// (perl) 2016-01-14 20:51:47 +01:00
mkdir-p.pl
mkerr.pl add -unref option to mkerr.pl 2015-12-22 19:20:11 +00:00
mkfiles.pl prf redirection build fixes 2016-01-19 15:33:45 +00:00
mkrc.pl Update year in Windows builds. 2015-09-28 15:32:38 +02:00
openssl-format-source Find the right indent on *BSD. 2015-08-10 13:28:26 +01:00
opensslwrap.sh
perlpath.pl
point.sh
selftest.pl GH336: Return an exit code if report fails 2015-08-01 14:32:32 -04:00
shlib_wrap.sh Test suite: minimal required to get mingw 'make test' work under Linux. 2015-10-13 19:46:50 +02:00
sp-diff.pl
speed.sh
ssleay.num Make SSL_set_debug deprecated in 1.1 2016-01-14 12:30:32 -05:00
su-filter.pl Delete trailing whitespace from output. 2015-01-22 09:20:09 +00:00
toutf8.sh Small script to re-encode files that need it to UTF-8 2015-07-14 01:10:01 +02:00
x86asm.sh