Browse Source

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.
Nick Mathewson 10 years ago
parent
commit
de3bbc4f53

+ 13 - 0
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.
+

+ 1 - 1
src/common/gen_linux_syscalls.pl → scripts/codegen/gen_linux_syscalls.pl

@@ -11,7 +11,7 @@ while (<>) {
 
 print <<EOL;
 /* Automatically generated with
-        gen_sandbox_syscalls.pl /usr/include/asm/unistd*.h
+        gen_linux_syscalls.pl /usr/include/asm/unistd*.h
    Do not edit.
  */
 static const struct {

+ 0 - 0
src/common/gen_server_ciphers.py → scripts/codegen/gen_server_ciphers.py


+ 0 - 0
src/common/get_mozilla_ciphers.py → scripts/codegen/get_mozilla_ciphers.py


+ 1 - 1
src/common/linux_syscalls.inc

@@ -1,5 +1,5 @@
 /* Automatically generated with
-        gen_sandbox_syscalls.pl /usr/include/asm/unistd*.h
+        gen_linux_syscalls.pl /usr/include/asm/unistd*.h
    Do not edit.
  */
 static const struct {