projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use log module, implement recv function. Some little refactor and update the cfg...
[bertos.git]
/
doc
/
chm-builder.py
diff --git
a/doc/chm-builder.py
b/doc/chm-builder.py
index 8ac5b2518957d2eaf3e37d04f31586bd433b76f4..e6900bd8dccb0534240a574f658f9d25098daa40 100644
(file)
--- a/
doc/chm-builder.py
+++ b/
doc/chm-builder.py
@@
-15,14
+15,16
@@
if sys.platform != 'win32':
print "This program can be run only on a Windows machine"
\r
sys.exit(-1)
\r
\r
print "This program can be run only on a Windows machine"
\r
sys.exit(-1)
\r
\r
-if len(sys.argv) <
1
:
\r
+if len(sys.argv) <
2
:
\r
print "Usage: " + sys.argv[0] + " [custom_doxyfile]"
\r
sys.exit(-1)
\r
\r
print "Usage: " + sys.argv[0] + " [custom_doxyfile]"
\r
sys.exit(-1)
\r
\r
+DOC_PATH = 'doc\\offline-reference\\html\\'
\r
toc_modifier = r"doc\chm-toc-modifier.py"
\r
toc_modifier = r"doc\chm-toc-modifier.py"
\r
-toc_file =
r"doc\reference\html\
index.hhc"
\r
+toc_file =
DOC_PATH + r"
index.hhc"
\r
bertos_toc = r"bertos-toc.hhc"
\r
\r
bertos_toc = r"bertos-toc.hhc"
\r
\r
+
\r
if os.system("doxygen " + sys.argv[1]):
\r
print "doxygen error"
\r
if os.system(toc_modifier + " " + toc_file + " " + bertos_toc):
\r
if os.system("doxygen " + sys.argv[1]):
\r
print "doxygen error"
\r
if os.system(toc_modifier + " " + toc_file + " " + bertos_toc):
\r
@@
-30,9
+32,9
@@
if os.system(toc_modifier + " " + toc_file + " " + bertos_toc):
move(bertos_toc, toc_file)
\r
\r
# compile CHM
\r
move(bertos_toc, toc_file)
\r
\r
# compile CHM
\r
-os.system(r"hhc
doc\reference\html\
index.hhp")
\r
+os.system(r"hhc
" + DOC_PATH + "
index.hhp")
\r
\r
\r
-chm_target = r"
doc
\bertos-doc.chm"
\r
-move(
r"doc\reference\html\
bertos-doc.chm", chm_target)
\r
+chm_target = r"
bertos
\bertos-doc.chm"
\r
+move(
DOC_PATH + r"
bertos-doc.chm", chm_target)
\r
\r
\r
\r
\r