Generate progs.h from a bunch of files instead of internal knowledge
authorRichard Levitte <levitte@openssl.org>
Thu, 11 Feb 2016 23:34:40 +0000 (00:34 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 12 Feb 2016 03:42:22 +0000 (04:42 +0100)
commitfb3e2a88eed124b1a74ebed89c20283780ee2bc6
tree00e3cb0532ca436a3c11c83a750cdfa7013e4558
parentb3ca51559b1a6cd80dc179ee54613f00190d1cb4
Generate progs.h from a bunch of files instead of internal knowledge

apps/progs.pl counted on the caller to provide the exact command
files.  The unified build doesn't have that knowledge, and the easier
and more flexible thing to do is to feed it all the apps/*.c files and
let it figure out the command names by looking inside (looking for
/int ([a-z0-9][a-z0-9_]*)_main\(int argc,/).

Also, add it to the generate command, since it's a versioned file.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Configurations/unix-Makefile.tmpl
apps/Makefile.in
apps/build.info
apps/progs.pl