about summary refs log tree commit diff stats
path: root/linkify/build
diff options
context:
space:
mode:
Diffstat (limited to 'linkify/build')
-rwxr-xr-xlinkify/build9
1 files changed, 9 insertions, 0 deletions
diff --git a/linkify/build b/linkify/build
new file mode 100755
index 00000000..da6c3ff4
--- /dev/null
+++ b/linkify/build
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+grep -h "^struct .* {" [0-9]*.cc  |sed 's/\(struct *[^ ]*\).*/\1;/'  > type_list
+grep -h "^typedef " [0-9]*.cc  >> type_list
+grep -h "^[^ #].*) {" [0-9]*.cc  |sed 's/ {.*/;/'  > function_list
+ls [0-9]*.cc  |grep -v "\.test\.cc$"  |sed 's/.*/#include "&"/'  > file_list
+ls [0-9]*.test.cc  |sed 's/.*/#include "&"/'  > test_file_list
+grep -h "^[[:space:]]*void test_" [0-9]*.cc  |sed 's/^\s*void \(.*\)() {$/\1,/'  > test_list
+c++ -g -O3 boot.cc -o linkify