clean up the root directory by moving parsing scripts into the tools directory
This commit is contained in:
@@ -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']
|
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 = []
|
files = []
|
||||||
|
|
||||||
for p in paths:
|
for p in paths:
|
||||||
files.extend(glob.glob(p))
|
files.extend(glob.glob(os.path.join('..', p)))
|
||||||
|
|
||||||
items = []
|
items = []
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ items.sort(key = lambda x: x['priority'], reverse = True)
|
|||||||
# if 'context' in i:
|
# if 'context' in i:
|
||||||
# print i['context'], '\n'
|
# print i['context'], '\n'
|
||||||
|
|
||||||
out = open('docs/todo.html', 'w+')
|
out = open('todo.html', 'w+')
|
||||||
out.write('''<html><head>
|
out.write('''<html><head>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
@@ -34,6 +34,9 @@ epub: $(TARGETS:=.epub) $(FIGURES:=.png)
|
|||||||
|
|
||||||
all: html
|
all: html
|
||||||
|
|
||||||
|
todo.html:gen_todo.py ../src/*.cpp ../include/libtorrent/*.hpp
|
||||||
|
python gen_todo.py
|
||||||
|
|
||||||
%.epub:%.rst
|
%.epub:%.rst
|
||||||
rst2epub $? $@
|
rst2epub $? $@
|
||||||
|
|
||||||
@@ -53,5 +56,5 @@ all: html
|
|||||||
cp $@ $(WEB_PATH)/$@
|
cp $@ $(WEB_PATH)/$@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(TARGETS:=.html) $(TARGETS:=.pdf)
|
rm -f $(TARGETS:=.html) $(TARGETS:=.pdf) todo.html
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user