mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
1aa89a7a3a
They now generally conform to the following argument sequence: script.pl "$(PERLASM_SCHEME)" [ C preprocessor arguments ... ] \ $(PROCESSOR) <output file> However, in the spirit of being able to use these scripts manually, they also allow for no argument, or for only the flavour, or for only the output file. This is done by only using the last argument as output file if it's a file (it has an extension), and only using the first argument as flavour if it isn't a file (it doesn't have an extension). While we're at it, we make all $xlate calls the same, i.e. the $output argument is always quoted, and we always die on error when trying to start $xlate. There's a perl lesson in this, regarding operator priority... This will always succeed, even when it fails: open FOO, "something" || die "ERR: $!"; The reason is that '||' has higher priority than list operators (a function is essentially a list operator and gobbles up everything following it that isn't lower priority), and since a non-empty string is always true, so that ends up being exactly the same as: open FOO, "something"; This, however, will fail if "something" can't be opened: open FOO, "something" or die "ERR: $!"; The reason is that 'or' has lower priority that list operators, i.e. it's performed after the 'open' call. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9884) |
||
---|---|---|
.. | ||
asm | ||
build.info | ||
e_afalg_err.c | ||
e_afalg_err.h | ||
e_afalg.c | ||
e_afalg.ec | ||
e_afalg.h | ||
e_afalg.txt | ||
e_capi_err.c | ||
e_capi_err.h | ||
e_capi.c | ||
e_capi.ec | ||
e_capi.txt | ||
e_dasync_err.c | ||
e_dasync_err.h | ||
e_dasync.c | ||
e_dasync.ec | ||
e_dasync.txt | ||
e_devcrypto.c | ||
e_ossltest_err.c | ||
e_ossltest_err.h | ||
e_ossltest.c | ||
e_ossltest.ec | ||
e_ossltest.txt | ||
e_padlock.c |