diff options
Diffstat (limited to 'browse_trace')
-rw-r--r-- | browse_trace/browse_trace.cc | 2 | ||||
-rwxr-xr-x | browse_trace/build | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/browse_trace/browse_trace.cc b/browse_trace/browse_trace.cc index 33463ebc..76e968a7 100644 --- a/browse_trace/browse_trace.cc +++ b/browse_trace/browse_trace.cc @@ -1,7 +1,7 @@ // Warning: zero automated tests // Includes -#include "../termbox/termbox.h" +#include "termbox/termbox.h" #include <stdlib.h> #define SIZE(X) (assert((X).size() < (1LL<<(sizeof(int)*8-2))), static_cast<int>((X).size())) diff --git a/browse_trace/build b/browse_trace/build index 6047cc2b..581769dc 100755 --- a/browse_trace/build +++ b/browse_trace/build @@ -57,10 +57,10 @@ noisy_cd() { echo "-- `pwd`" >&2 } -older_than browse_trace_bin browse_trace.cc *_list ../termbox/* && { +older_than browse_trace_bin browse_trace.cc *_list termbox/* && { # missing some deps here - noisy_cd ../termbox - older_than ../termbox/libtermbox.a ../termbox/*.c && { + noisy_cd termbox + older_than libtermbox.a *.c && { older_than utf8.o utf8.c && { $CC $CFLAGS -c utf8.c } @@ -71,13 +71,13 @@ older_than browse_trace_bin browse_trace.cc *_list ../termbox/* && { ar rcs libtermbox.a *.o } } - noisy_cd ../browse_trace + noisy_cd .. grep -h "^[^[:space:]#].*) {$" browse_trace.cc |grep -v ":.*(" |sed 's/ {.*/;/' |update function_list # auto-generate list of tests to run grep -h "^\s*void test_" browse_trace.cc |sed 's/^\s*void \(.*\)() {.*/\1,/' |update test_list grep -h "^\s*void test_" browse_trace.cc |sed 's/^\s*void \(.*\)() {.*/"\1",/' |update test_name_list - $CXX $CFLAGS browse_trace.cc ../termbox/libtermbox.a -o browse_trace_bin + $CXX $CFLAGS browse_trace.cc termbox/libtermbox.a -o browse_trace_bin } exit 0 |