forked from premiere/premiere-libtorrent
clean up the root directory by moving parsing scripts into the tools directory
This commit is contained in:
parent
50ecb07d19
commit
1888a8924d
|
@ -3,12 +3,12 @@ import os
|
|||
|
||||
paths = ['src/*.cpp', 'src/kademlia/*.cpp', 'include/libtorrent/*.hpp', 'include/libtorrent/kademlia/*.hpp', 'include/libtorrent/aux_/*.hpp', 'include/libtorrent/extensions/*.hpp']
|
||||
|
||||
os.system('ctags %s 2>/dev/null' % ' '.join(paths))
|
||||
os.system('(cd .. ; ctags %s 2>/dev/null)' % ' '.join(paths))
|
||||
|
||||
files = []
|
||||
|
||||
for p in paths:
|
||||
files.extend(glob.glob(p))
|
||||
files.extend(glob.glob(os.path.join('..', p)))
|
||||
|
||||
items = []
|
||||
|
||||
|
@ -88,7 +88,7 @@ items.sort(key = lambda x: x['priority'], reverse = True)
|
|||
# if 'context' in i:
|
||||
# print i['context'], '\n'
|
||||
|
||||
out = open('docs/todo.html', 'w+')
|
||||
out = open('todo.html', 'w+')
|
||||
out.write('''<html><head>
|
||||
<script type="text/javascript">
|
||||
/* <![CDATA[ */
|
|
@ -34,6 +34,9 @@ epub: $(TARGETS:=.epub) $(FIGURES:=.png)
|
|||
|
||||
all: html
|
||||
|
||||
todo.html:gen_todo.py ../src/*.cpp ../include/libtorrent/*.hpp
|
||||
python gen_todo.py
|
||||
|
||||
%.epub:%.rst
|
||||
rst2epub $? $@
|
||||
|
||||
|
@ -53,5 +56,5 @@ all: html
|
|||
cp $@ $(WEB_PATH)/$@
|
||||
|
||||
clean:
|
||||
rm -f $(TARGETS:=.html) $(TARGETS:=.pdf)
|
||||
rm -f $(TARGETS:=.html) $(TARGETS:=.pdf) todo.html
|
||||
|
||||
|
|
Loading…
Reference in New Issue