aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-05-07 01:17:41 -0400
committerNick Mathewson <nickm@torproject.org>2014-05-07 01:17:41 -0400
commitde3bbc4f53c2a1905a713c66bf8f375b646cd2a2 (patch)
tree224a3c32c79a712844fae33f40bd1696b21de148
parent81144b2bd28b8c0e3d7919c04f1a8190b75c07e9 (diff)
downloadtor-de3bbc4f53c2a1905a713c66bf8f375b646cd2a2.tar
tor-de3bbc4f53c2a1905a713c66bf8f375b646cd2a2.tar.gz
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.
-rw-r--r--scripts/README13
-rwxr-xr-xscripts/codegen/gen_linux_syscalls.pl (renamed from src/common/gen_linux_syscalls.pl)2
-rwxr-xr-xscripts/codegen/gen_server_ciphers.py (renamed from src/common/gen_server_ciphers.py)0
-rw-r--r--scripts/codegen/get_mozilla_ciphers.py (renamed from src/common/get_mozilla_ciphers.py)0
-rw-r--r--src/common/linux_syscalls.inc2
5 files changed, 15 insertions, 2 deletions
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
index 3c64098a0..f985bad6c 100755
--- a/src/common/gen_linux_syscalls.pl
+++ b/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 {
diff --git a/src/common/gen_server_ciphers.py b/scripts/codegen/gen_server_ciphers.py
index 97ed9d046..97ed9d046 100755
--- a/src/common/gen_server_ciphers.py
+++ b/scripts/codegen/gen_server_ciphers.py
diff --git a/src/common/get_mozilla_ciphers.py b/scripts/codegen/get_mozilla_ciphers.py
index 0636eb365..0636eb365 100644
--- a/src/common/get_mozilla_ciphers.py
+++ b/scripts/codegen/get_mozilla_ciphers.py
diff --git a/src/common/linux_syscalls.inc b/src/common/linux_syscalls.inc
index 912735660..cf47c7380 100644
--- a/src/common/linux_syscalls.inc
+++ b/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 {