forked from blockchainsllc/in3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.awk
44 lines (41 loc) · 1.31 KB
/
options.awk
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
# addrs.awk --- simple mailing list program
# Records are separated by blank lines.
# Each line is one field.
BEGIN {
print "# Building"
print ""
print "While we provide binaries, you can also build from source:"
print ""
print "### requirements"
print ""
print "- cmake"
print "- curl : curl is used as transport for command-line tools, but you can also compile it without curl (`-DUSE_CURL=false -DCMD=false`), if you want to implement your own transport."
print ""
print "Incubed uses cmake for configuring:"
print ""
print "```sh"
print "mkdir build && cd build"
print "cmake -DCMAKE_BUILD_TYPE=Release .. && make"
print "make install"
print "```"
print ""
print "### CMake options";
print "" ;
print "When configuring cmake, you can set a lot of different incubed specific like `cmake -DEVM_GAS=false ..`." ;
print "" ;
RS = "" ;
FS = "\n"
}
{
if (split($1, d, /\/\//) == 2 && index($2,"CMAKE") == 0 && index($2,"CURL_") == 0 && index($2,"JAVA_")==0 && index($2,"DOXYGEN_")==0 && index($2,"Java_") == 0 && index($2,"scrypt_") == 0)
{
split($2, a, /[:=]/)
print "#### "a[1]
print ""
print " "d[2]
print ""
print "Default-Value: `-D" a[1] "=" a[3]"`"
print ""
print ""
}
}