forked from premiere/premiere-libtorrent
fix issue in gen_stats_doc.py and make travis only generate the .rst files since docutils is too old
This commit is contained in:
parent
673613a160
commit
1a6792609d
|
@ -72,7 +72,8 @@ install:
|
|||
- rst2html --version
|
||||
|
||||
script:
|
||||
- if [[ $docs == "1" && $TRAVIS_OS_NAME == "linux" ]]; then cd docs; make RST2HTML=rst2html; cd ..; fi
|
||||
# disable invoking docutils for now, until we can have a modern version of it
|
||||
- if [[ $docs == "1" && $TRAVIS_OS_NAME == "linux" ]]; then cd docs; make rst RST2HTML=rst2html; cd ..; fi
|
||||
- cd test
|
||||
- bjam --hash -j3 warnings-as-errors=on variant=$variant -l900 $coverage_toolset $target
|
||||
# if we're building with code coverage, report it as soon as possible
|
||||
|
|
|
@ -7,9 +7,12 @@ f = open('../include/libtorrent/performance_counters.hpp')
|
|||
counter_type = ''
|
||||
|
||||
for l in f:
|
||||
|
||||
# ignore anything after //
|
||||
if '//' in l: l = l.split('//')[0]
|
||||
|
||||
l = l.strip()
|
||||
|
||||
if l.startswith('//'): continue
|
||||
if l.startswith('#'): continue
|
||||
if l == '': continue
|
||||
|
||||
|
|
|
@ -55,6 +55,8 @@ FIGURES = \
|
|||
disk_cache \
|
||||
troubleshooting
|
||||
|
||||
rst: $(TARGETS:=.rst) $(FIGURES:=.png) todo.html
|
||||
|
||||
html: $(TARGETS:=.html) $(FIGURES:=.png) todo.html
|
||||
|
||||
pdf: $(TARGETS:=.pdf) $(FIGURES:=.eps)
|
||||
|
|
Loading…
Reference in New Issue