From de3bbc4f53c2a1905a713c66bf8f375b646cd2a2 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 7 May 2014 01:17:41 -0400 Subject: [PATCH] Move code-generation scripts to scripts/codegen Now that we have a scripts/* directory, let's put the scripts we use for generating C there. --- scripts/README | 13 +++++++++++++ .../codegen}/gen_linux_syscalls.pl | 2 +- .../codegen}/gen_server_ciphers.py | 0 .../codegen}/get_mozilla_ciphers.py | 0 src/common/linux_syscalls.inc | 2 +- 5 files changed, 15 insertions(+), 2 deletions(-) rename {src/common => scripts/codegen}/gen_linux_syscalls.pl (88%) rename {src/common => scripts/codegen}/gen_server_ciphers.py (100%) rename {src/common => scripts/codegen}/get_mozilla_ciphers.py (100%) diff --git a/scripts/README b/scripts/README index 0a831264e..f2cb5013c 100644 --- a/scripts/README +++ b/scripts/README @@ -40,3 +40,16 @@ object files. test/scan-build.sh -- Example script for invoking clang's scan-build static analysis tools. + +Code generation scripts +----------------------- + +codegen/gen_linux_syscalls.pl -- Generate a table mapping linux syscall +numbers to their names. + +codegen/gen_server_ciphers.py -- Generate a sorted list of TLS ciphersuites +for servers to choose from. + +codegen/get_mozilla_ciphers.py -- Generate a list of TLS ciphersuites for +clients to use in order to look like Firefox. + diff --git a/src/common/gen_linux_syscalls.pl b/scripts/codegen/gen_linux_syscalls.pl similarity index 88% rename from src/common/gen_linux_syscalls.pl rename to scripts/codegen/gen_linux_syscalls.pl index 3c64098a0..f985bad6c 100755 --- a/src/common/gen_linux_syscalls.pl +++ b/scripts/codegen/gen_linux_syscalls.pl @@ -11,7 +11,7 @@ while (<>) { print <