about summary refs log tree commit diff stats
path: root/build_until
blob: 42d44bc7ef5890ace273462075a63358f361f603 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# Load all files sorting before the given argument.
# You can pass in a prefix, but files matching the prefix *won't* be included.

set -e
set -v
make --no-print-directory tangle/tangle
make --no-print-directory enumerate/enumerate

./tangle/tangle $(./enumerate/enumerate --until $1 |grep -v '.mu$') |grep -v "^\s*//:" > mu.cc
make --no-print-directory autogenerated_lists

cat /dev/null $(./enumerate/enumerate --until $1 |grep '.mu$') > core.mu

CFLAGS=${CFLAGS:-"-g -O3"} make