about summary refs log tree commit diff stats
path: root/archive/1.vm/build0
blob: 03ac8180dbcdcc4fe93318d561708863d925ec56 (plain) (blame)
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
#!/bin/sh
# Compile mu from scratch.

set -v
set -e  # stop immediately on error

cd ../../tools
  # auto-generate various lists (ending in '_list' by convention) {
  # list of function declarations, so I can define them in any order
  grep -h "^[^ #].*) {" tangle.cc  |sed 's/ {.*/;/'  > tangle.function_list
  # list of tests to run
  grep -h "^[[:space:]]*void test_" tangle.cc  |sed 's/^\s*void \(.*\)() {$/\1,/'  > tangle.test_list
  grep -h "^\s*void test_" tangle.cc  |sed 's/^\s*void \(.*\)() {.*/"\1",/'  > tangle.test_name_list
  # }
  g++ -std=c++98 -g -O3 tangle.cc -o tangle
  ./tangle test
cd ../archive/1.vm

cd termbox
  gcc -g -O2 -c termbox.c
  gcc -g -O2 -c utf8.c
  ar rcs libtermbox.a *.o
cd ..

../../tools/tangle [0-9]*.cc > mu.cc
# auto-generate function declarations, so I can define them in any order
# functions start out unindented, have all args on the same line, and end in ') {'
#
#                                      \/ ignore struct/class methods
grep -h "^[^[:space:]#].*) {$" mu.cc  |grep -v ":.*("  |sed 's/ {.*/;/'  > function_list
# auto-generate list of tests to run
grep -h "^\s*void test_" mu.cc  |sed 's/^\s*void \(.*\)() {.*/\1,/'  > test_list
grep -h "^\s*void test_" mu.cc  |sed 's/^\s*void \(.*\)() {.*/"\1",/'  > test_name_list
g++ -std=c++98 -g -O2 mu.cc termbox/libtermbox.a -o mu_bin

cat [0-9]*.mu > core.mu
713ef099ac2f1bec407d1d256b246f'>fbb0f81f ^
b21edfaa ^
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


             
                        
                       










                          
                         



                        

                         
                      








                          

                


          
                  
                  
           
         
                
              
                     
                     

          
                        

















                                

                            

                             
                           
                  
[colours]
bkgnd=default
titlebar=blue
titlebar.text=bold_white
titlebar.brackets=white
titlebar.unencrypted=cyan
titlebar.encrypted=white
titlebar.untrusted=cyan
titlebar.trusted=white
titlebar.online=bold_white
titlebar.offline=cyan
titlebar.away=white
titlebar.chat=bold_white
titlebar.dnd=cyan
titlebar.xa=bold_cyan
statusbar=blue
statusbar.text=bold_white
statusbar.brackets=white
statusbar.active=cyan
statusbar.new=white
main.text=blue
main.text.me=bold_cyan
main.text.them=bold_white
main.splash=bold_white
main.time=cyan
input.text=white
subscribed=bold_cyan
unsubscribed=blue
otr.started.trusted=white
otr.started.untrusted=cyan
otr.ended=cyan
otr.trusted=white
otr.untrusted=cyan
online=bold_cyan
away=bold_blue
chat=white
dnd=blue
xa=cyan
offline=bold_black
incoming=bold_cyan
typing=cyan
gone=blue
error=bold_white
roominfo=white
roommention=bold_blue
roomtrigger=bold_blue
me=cyan
them=white
roster.header=bold_white
roster.chat=white
roster.online=bold_cyan
roster.away=bold_blue
roster.xa=cyan
roster.dnd=blue
roster.offline=bold_black
roster.chat.active=white
roster.online.active=bold_cyan
roster.away.active=bold_blue
roster.xa.active=cyan
roster.dnd.active=blue
roster.offline.active=bold_black
roster.chat.unread=white
roster.online.unread=bold_cyan
roster.away.unread=bold_blue
roster.xa.unread=cyan
roster.dnd.unread=blue
roster.offline.unread=bold_black
roster.room=cyan
roster.room.unread=bold_cyan
roster.room.mention=bold_blue
roster.room.trigger=bold_blue
occupants.header=bold_white
receipt.sent=white