diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-12-05 23:25:00 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-12-05 23:25:00 -0800 |
commit | c7a5d74252419a5582f1e68ed7bb393d3f6e06c8 (patch) | |
tree | b512f054d1dfbb4f46f0e9e4e4744a3e5be0db1f | |
parent | 686a52bd2ef94fb6a2f255e59b17d9e71f719918 (diff) | |
download | mu-c7a5d74252419a5582f1e68ed7bb393d3f6e06c8.tar.gz |
5791
-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 |