From c7a5d74252419a5582f1e68ed7bb393d3f6e06c8 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Thu, 5 Dec 2019 23:25:00 -0800 Subject: 5791 --- browse_trace/browse_trace.cc | 2 +- browse_trace/build | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'browse_trace') 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 #define SIZE(X) (assert((X).size() < (1LL<<(sizeof(int)*8-2))), static_cast((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 -- cgit 1.4.1-2-gfad0