-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcreatedoc.sh
executable file
·108 lines (82 loc) · 2.71 KB
/
createdoc.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
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
#! /bin/sh
echo ""
echo "================================================================================"
echo "Script that generates the documentation related to the NetBee library"
echo "All the files will be placed in the "docs\\exports" and "docs\\internals" folder."
echo "The Microsoft CHM help file will be placed in "release\\netbee.chm" "
echo ""
echo "Script launch order:"
echo " 1. createbin.sh"
echo " 2. createdoc.sh"
echo " 3. createdevpack.sh"
echo " 4. createsrc.sh"
echo "================================================================================"
echo ""
echo ""
echo "======================================"
echo "Deleting existing NetBee documentation"
echo "======================================"
echo ""
# Remove the folder that will contain the NetBee website
#rm -rf release/website 2> /dev/null
# Remove folders containing the documentation generated by doxygen
#rm -rf docs/exports/*
#rm -rf docs/internals/*
echo ""
echo "=========================================="
echo "Creating NetBee documentation with doxygen"
echo " (Note: doxygen must be in your PATH)"
echo "=========================================="
echo ""
#mkdir docs
#mkdir docs/exports
#mkdir docs/internal
cd doxygen
doxygen nbee.dox
doxygen nbee_internal.dox
doxygen nbprotodb.dox
doxygen nbprotodb_internal.dox
doxygen nbpflcompiler.dox
#doxygen nbpflcompiler_internal.dox
doxygen nbnetvm.dox
doxygen nbnetvm_internal.dox
doxygen nbsockutils.dox
doxygen nbsockutils_internal.dox
## Generate NetVM instruction set
awk -f nbnetvm_generateinstructionset.awk < ../src/nbnetvm/opcodes.txt > ../docs/exports/netvm_instructionset.xml
cd ../
echo ""
echo "======================================================"
echo "Copying standard web pages in the documentation folder"
echo "======================================================"
echo ""
mkdir -p ./release/website
cp -rf ./docs/* ./release/website 2> /dev/null
# Remove all SVN folders
cd release/website
find . -depth -name .svn -exec rm -rf {} \;
cd ../..
#if [ "`uname`" != "Linux" ]
#then
# echo ""
# echo "=============================================================================="
# echo "Generating HTML Help files"
# echo "WARNINGS:"
# echo " - this command works only in Windows (CHM files cannot be generated on UNIX)"
# echo " - HTML Help Compiler must be in 'C:\Program Files\HTML Help Workshop'"
# echo "=============================================================================="
# echo ""
#
# cd release/website
# "/cygdrive/c/Program Files/HTML Help Workshop/hhc" netbee.hhp
#
# # Move the CHM to the root folder
# mv nbee.chm ../.
# rm -rfd netbee.hhp
#
# cd ../..
#fi
# Create a ZIP file for the Source pack
cd ./release/website
zip -r ../nbdocs.zip *
cd ../..