-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile.sh
executable file
·44 lines (33 loc) · 1.12 KB
/
compile.sh
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
#!/bin/bash
if [ ! -d "docs" ]
then
mkdir "docs"
fi
if [ ! -d "bin" ]
then
mkdir "bin"
fi
echo Compiling code...
gmcs ./src/*.cs ./src/Users/*.cs ./src/Misc/*.cs ./src/Channels/*.cs ./src/DCC/*.cs ./src/ServerInfo/*.cs -target:library -out:./bin/ircsharp.dll -keyfile:./src/IRC.key -doc:./docs/ircsharp.xml > /dev/null
echo Generating monodoc documentation...
monodocer -name:"ircsharp" -importslashdoc:./docs/ircsharp.xml -path:./docs/en -assembly:./bin/ircsharp.dll -pretty > /dev/null
echo Generating html documentation...
monodocs2html --source ./docs/en --dest ./docs/html > /dev/null
cd docs
echo Generating monodoc assembly...
mdassembler --ecma en -o ircsharp-docs &> /dev/null
echo "<?xml version=\"1.0\"?>" > ircsharp-docs.source
echo "<monodoc>" >> ircsharp-docs.source
echo " <source provider=\"ecma\" basefile=\"ircsharp-docs\" path=\"various\"/>" >> ircsharp-docs.source
echo "</monodoc>" >> ircsharp-docs.source
rm -R en
cd ../
echo
echo All tasks complete
echo
echo ./bin contains binaries
echo ./docs contains documentation
echo
echo Run install.sh to install assembly and documentation.
echo
echo Have fun!