about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-12-05 23:25:00 -0800
committerKartik Agaram <vc@akkartik.com>2019-12-05 23:25:00 -0800
commitc7a5d74252419a5582f1e68ed7bb393d3f6e06c8 (patch)
treeb512f054d1dfbb4f46f0e9e4e4744a3e5be0db1f
parent686a52bd2ef94fb6a2f255e59b17d9e71f719918 (diff)
downloadmu-c7a5d74252419a5582f1e68ed7bb393d3f6e06c8.tar.gz
5791
-rw-r--r--browse_trace/browse_trace.cc2
-rwxr-xr-xbrowse_trace/build10
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
ef='#n199'>199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381