about summary refs log tree commit diff stats
path: root/archive/1.vm/build2
diff options
context:
space:
mode:
Diffstat (limited to 'archive/1.vm/build2')
-rwxr-xr-xarchive/1.vm/build236
1 files changed, 13 insertions, 23 deletions
diff --git a/archive/1.vm/build2 b/archive/1.vm/build2
index c6d5ef76..e0383fa5 100755
--- a/archive/1.vm/build2
+++ b/archive/1.vm/build2
@@ -81,38 +81,28 @@ noisy_cd() {
   echo "-- `pwd`" >&2
 }
 
-older_than ../../enumerate/enumerate ../../enumerate/enumerate.cc && {
-  $CXX $CXXFLAGS ../../enumerate/enumerate.cc -o ../../enumerate/enumerate
+older_than ../../tools/enumerate ../../tools/enumerate.cc && {
+  $CXX $CXXFLAGS ../../tools/enumerate.cc -o ../../tools/enumerate
 }
 
-older_than ../../tangle/tangle tangle/*.cc && {
-  noisy_cd ../../tangle
+older_than ../../tools/tangle ../../tools/tangle.cc && {
+  noisy_cd ../../tools
     # auto-generate various lists (ending in '_list' by convention) {
-    # list of types
-    {
-      grep -h "^struct .* {" [0-9]*.cc  |sed 's/\(struct *[^ ]*\).*/\1;/'
-      grep -h "^typedef " [0-9]*.cc
-    }  |update type_list
     # list of function declarations, so I can define them in any order
-    grep -h "^[^ #].*) {" [0-9]*.cc  |sed 's/ {.*/;/'  |update function_list
-    # list of code files to compile
-    ls [0-9]*.cc  |grep -v "\.test\.cc$"  |sed 's/.*/#include "&"/'  |update file_list
-    # list of test files to compile
-    ls [0-9]*.test.cc  |sed 's/.*/#include "&"/'  |update test_file_list
+    grep -h "^[^ #].*) {" tangle.cc  |sed 's/ {.*/;/'  |update tangle.function_list
     # list of tests to run
-    grep -h "^[[:space:]]*void test_" [0-9]*.cc  |sed 's/^\s*void \(.*\)() {$/\1,/'  |update test_list
-    grep -h "^\s*void test_" [0-9]*.cc  |sed 's/^\s*void \(.*\)() {.*/"\1",/'  |update test_name_list
+    grep -h "^[[:space:]]*void test_" tangle.cc  |sed 's/^\s*void \(.*\)() {$/\1,/'  |update tangle.test_list
+    grep -h "^\s*void test_" tangle.cc  |sed 's/^\s*void \(.*\)() {.*/"\1",/'  |update tangle.test_name_list
     # }
-    # Now that we have all the _lists, compile 'tangle'
-    $CXX $CXXFLAGS boot.cc -o tangle
+    $CXX $CFLAGS tangle.cc -o tangle
     ./tangle test
-  noisy_cd ../archive/2.vm  # no effect; just to show us returning to the parent directory
+  noisy_cd ../archive/1.vm  # no effect; just to show us returning to the parent directory
 }
 
-LAYERS=$(../../enumerate/enumerate --until $UNTIL_LAYER  |grep '\.cc$')
-older_than mu.cc $LAYERS ../../enumerate/enumerate ../../tangle/tangle && {
+LAYERS=$(../../tools/enumerate --until $UNTIL_LAYER  |grep '\.cc$')
+older_than mu.cc $LAYERS ../../tools/enumerate ../../tools/tangle && {
   # no update here; rely on 'update' calls downstream
-  ../../tangle/tangle $LAYERS  > mu.cc
+  ../../tools/tangle $LAYERS  > mu.cc
 }
 
 older_than cleave/cleave cleave/cleave.cc && {
@@ -160,7 +150,7 @@ older_than mu_bin mu.cc *_list cleave/cleave termbox/* && {
 
 ## [0-9]*.mu -> core.mu
 
-MU_LAYERS=$(../../enumerate/enumerate --until $UNTIL_LAYER  |grep '\.mu$') || exit 0  # ok if no .mu files
+MU_LAYERS=$(../../tools/enumerate --until $UNTIL_LAYER  |grep '\.mu$') || exit 0  # ok if no .mu files
 cat $MU_LAYERS  |update core.mu
 
 exit 0
38:11 +0530 committer Andinus <andinus@nand.sh> 2020-10-08 16:39:08 +0530 Switch config, simplify script, make paths relative to '/'' href='/andinus/leo/commit/leo.pl?h=v0.6.0&id=6c9ce6ace5bffde393ce7354b18da55418e89d61'>6c9ce6a ^
eda386d ^
6754399 ^


69f17fe ^
6c9ce6a ^
cb14d4e ^
6c9ce6a ^






6754399 ^








6c9ce6a ^
1e63070 ^
6c9ce6a ^

cb14d4e ^
cb14d4e ^


cb14d4e ^
fdc444f ^
078ee3b ^
88d6d56 ^


6c9ce6a ^

cb14d4e ^
88d6d56 ^
cb14d4e ^
b64034d ^

fdc444f ^
9e478c1 ^
6c9ce6a ^





9e478c1 ^
fdc444f ^
18c8216 ^
b99691c ^
6c9ce6a ^


9e478c1 ^

fdc444f ^

6c9ce6a ^
9e478c1 ^
6dca06c ^
18c8216 ^


fdc444f ^
18c8216 ^

eeb6cb0 ^


18c8216 ^



18c8216 ^
61e44ee ^
4648948 ^
61e44ee ^


252af66 ^



299d5ee ^

61e44ee ^

9e478c1 ^
34857c3 ^
34857c3 ^
fdc444f ^
34857c3 ^
cb14d4e ^

cb14d4e ^


6c9ce6a ^
34857c3 ^
6c9ce6a ^
6754399 ^
6c9ce6a ^


6754399 ^
6c9ce6a ^


6754399 ^
6c9ce6a ^

1e63070 ^
6754399 ^

34857c3 ^

18c8216 ^
61c874b ^












69f17fe ^
61c874b ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173