unified build scheme: give util/dofile.pl the possibility to output selectively
authorRichard Levitte <levitte@openssl.org>
Sat, 30 Jan 2016 02:21:39 +0000 (03:21 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 10 Feb 2016 13:36:04 +0000 (14:36 +0100)
commitdeb02194d246d865ff3837deb500a901e2269109
tree1e23bec8d87a52ce1cca5e8573c5edd1f561efca
parent5482dac9f4de7eb73d1b9c776be9495735f7e299
unified build scheme: give util/dofile.pl the possibility to output selectively

Under certain conditions, one might not want to output certain
sections of a template file.  This adds the functions output_off() and
output_on(), reachable inside the templates.  And example usage in a
Makefile template could be this:

@ : {- output_off() if $config{no_shared}; "" -}
... lines dealing with shared libraries
@ : {- output_on() -}

Reviewed-by: Rich Salz <rsalz@openssl.org>
util/dofile.pl