compile_everything.anubis
1.05 KB
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
The Anubis Project
This file contains a program for compiling all source files of the
official released Anubis library.
read official_released_library.anubis
read tools/basis.anubis
define One
compile
(
String dir_path,
AnubisLibraryItem item,
) =
if item is
{
anubis_file(name) then
forget((Maybe(Word8))execute(success(dir_path),"anubis",["-nocolor", name])),
anubis_c_file(name) then
forget((Maybe(Word8))execute(success(dir_path),"anubis",["-nocolor", name])),
anubis_font(name) then unique,
apg_file(name) then unique,
image(name) then unique,
text_file(name) then unique,
pdf_file(name) then unique,
directory(name, content) then
map_forget((AnubisLibraryItem i) |-> compile(dir_path+"/"+name,i),content)
}.
global define One
compile_everything
(
List(String) args
) =
compile(anubis_directory,the_official_Anubis_library).