about summary refs log blame commit diff stats
path: root/linkify/build
blob: da6c3ff43d60bff84269b560ac7d24599b7f0cb1 (plain) (tree)
1
2
3
4
5
6
7
8
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