summaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-01-25 21:19:59 +0100
committerRichard Levitte <levitte@openssl.org>2016-01-25 21:19:59 +0100
commit9ab6fc5936be62f6fee1c433938eae4c89aa23da (patch)
tree0f0177f9d404741116b0c65c157db32c10410a35 /Configure
parent52cdc9970de5f0e884d829d8dfa23c89c51527f9 (diff)
Generate warning text
Now that we're using templates, we should warn people not to edit the resulting file. We do it through util/dofile.pl, which is enhanced with an option to tell what file it was called from. We also change the calls so the template files are on the command line instead of being redirected through standard input. That way, we can display something like this (example taken from include/openssl/opensslconf.h): /* WARNING: do not edit! */ /* Generated by Configure from include/openssl/opensslconf.h.in */ Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/Configure b/Configure
index 2e88a73185..d5637401c4 100755
--- a/Configure
+++ b/Configure
@@ -1752,7 +1752,7 @@ sub run_dofile()
my $out = shift;
# should we remove $out ?
- system("$config{perl} -I. -Mconfigdata util/dofile.pl <$in >$out.new");
+ system("$config{perl} -I. -Mconfigdata util/dofile.pl -o\"Configure\" $in > $out.new");
exit 1 if $? != 0;
rename("$out.new", $out) || die "Can't rename $out.new, $!";
}