about summary refs log tree commit diff stats
path: root/build
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-11-17 22:07:46 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-11-17 22:07:46 -0800
commit79cb6ea54e7ef76cf3768ec06a0510296b8ac5e9 (patch)
tree1d0f9e081e37c85b2ecfaba2bb1615da49f61db9 /build
parentb02b764a3d456da4fab19e2d59a00dfff48082f6 (diff)
downloadmu-79cb6ea54e7ef76cf3768ec06a0510296b8ac5e9.tar.gz
3680
Was there some reason I used a subshell?
No reason recorded at bottom.
Diffstat (limited to 'build')
-rwxr-xr-xbuild29
1 files changed, 13 insertions, 16 deletions
diff --git a/build b/build
index cbf39994..15af4d65 100755
--- a/build
+++ b/build
@@ -76,22 +76,19 @@ older_than enumerate/enumerate enumerate/enumerate.cc && {
   $CXX $CFLAGS enumerate/enumerate.cc -o enumerate/enumerate
 }
 
-(
-  older_than tangle/tangle tangle/*.cc && {
-    noisy_cd tangle
-      {
-        grep -h "^struct .* {" [0-9]*.cc |sed 's/\(struct *[^ ]*\).*/\1;/'
-        grep -h "^typedef " [0-9]*.cc
-      } |update type_list
-      grep -h "^[^ #].*) {" [0-9]*.cc |sed 's/ {.*/;/' |update function_list
-      ls [0-9]*.cc |grep -v "\.test\.cc$" |sed 's/.*/#include "&"/' |update file_list
-      ls [0-9]*.test.cc |sed 's/.*/#include "&"/' |update test_file_list
-      grep -h "^[[:space:]]*void test_" [0-9]*.cc |sed 's/^\s*void \(.*\)() {$/\1,/' |update test_list
-      $CXX $CFLAGS boot.cc -o tangle
-    noisy_cd ..  # no effect; just to show us returning to the parent directory
-  }
-  exit 0
-)
+older_than tangle/tangle tangle/*.cc && {
+  noisy_cd tangle
+    {
+      grep -h "^struct .* {" [0-9]*.cc |sed 's/\(struct *[^ ]*\).*/\1;/'
+      grep -h "^typedef " [0-9]*.cc
+    } |update type_list
+    grep -h "^[^ #].*) {" [0-9]*.cc |sed 's/ {.*/;/' |update function_list
+    ls [0-9]*.cc |grep -v "\.test\.cc$" |sed 's/.*/#include "&"/' |update file_list
+    ls [0-9]*.test.cc |sed 's/.*/#include "&"/' |update test_file_list
+    grep -h "^[[:space:]]*void test_" [0-9]*.cc |sed 's/^\s*void \(.*\)() {$/\1,/' |update test_list
+    $CXX $CFLAGS boot.cc -o tangle
+  noisy_cd ..  # no effect; just to show us returning to the parent directory
+}
 
 LAYERS=$(./enumerate/enumerate --until $UNTIL_LAYER |grep -v '.mu$')
 older_than mu.cc $LAYERS enumerate/enumerate tangle/tangle && {