blob: 1628068bce883cc44646f54a8369687664d19ca7 (
plain)
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
|
# Count lines of code
```
cd ~/lux/ && find . -name '*.lux' | xargs wc -l
```
---
# Clean all
```
cd ~/lux/lux-bootstrapper/ && lein clean && \
cd ~/lux/stdlib/ && lein clean
```
---
# Read generated bytecode
```
cd ~/lux/jbe/ && ./jbe.sh
```
---
# Old/bootstrapping compiler
## Build & install
```
cd ~/lux/lux-bootstrapper/ && lein clean && lein install
```
## Run JBE
```
cd ~/lux/jbe/ && ./jbe.sh
```
---
# Standard Library
## Test
```
cd ~/lux/stdlib/ && lein clean && lein with-profile bibliotheca lux auto test
cd ~/lux/stdlib/ && lein with-profile bibliotheca lux auto test
```
## Deploy
```
cd ~/lux/stdlib/ && lein install
cd ~/lux/stdlib/ && mvn install:install-file -Dfile=target/library.tar -DgroupId=com.github.luxlang -DartifactId=stdlib -Dversion=0.6.0-SNAPSHOT -Dpackaging=tar
cd ~/lux/stdlib/ && mvn deploy:deploy-file \
-Durl=https://<username>:<password>@oss.sonatype.org/content/repositories/snapshots/ \
-Dfile=target/library.tar \
-DgroupId=com.github.luxlang \
-DartifactId=stdlib \
-Dversion=0.6.0-SNAPSHOT \
-Dpackaging=tar
```
## Generate documentation
```
cd ~/lux/stdlib/ && lein clean && lein with-profile scriptum lux auto build
```
---
# Aedifex: Build system
## Build
```
cd ~/lux/stdlib/ && lein clean && lein with-profile aedifex lux auto build
```
## Test
```
cd ~/lux/stdlib/ && lein clean && lein with-profile aedifex lux auto test
```
---
# Leiningen plugin
## Install
```
cd ~/lux/lux-lein/ && lein install
```
---
# Licentia: License maker
## Build
```
cd ~/lux/stdlib/ && lein clean && lein with-profile licentia lux auto build
```
## Test
```
cd ~/lux/stdlib/ && lein clean && lein with-profile licentia lux auto test
```
## Run
```
cd ~/lux/stdlib/ && java -jar target/program.jar --input ../license.json --output ../license.txt
```
|