From 1888a8924df1e651cbc8e35cae0b805fd2575e42 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 14 Jun 2013 16:49:06 +0000 Subject: [PATCH] clean up the root directory by moving parsing scripts into the tools directory --- gen_todo.py => docs/gen_todo.py | 6 +++--- docs/makefile | 5 ++++- parse_bandwidth_log.py => tools/parse_bandwidth_log.py | 0 parse_buffer_log.py => tools/parse_buffer_log.py | 0 parse_dht_log.py => tools/parse_dht_log.py | 0 parse_dht_rtt.py => tools/parse_dht_rtt.py | 0 parse_dht_stats.py => tools/parse_dht_stats.py | 0 parse_disk_access.py => tools/parse_disk_access.py | 0 parse_disk_buffer_log.py => tools/parse_disk_buffer_log.py | 0 parse_disk_log.py => tools/parse_disk_log.py | 0 parse_memory_log.py => tools/parse_memory_log.py | 0 parse_peer_log.py => tools/parse_peer_log.py | 0 parse_sample.py => tools/parse_sample.py | 0 parse_session_stats.py => tools/parse_session_stats.py | 0 parse_utp_log.py => tools/parse_utp_log.py | 0 15 files changed, 7 insertions(+), 4 deletions(-) rename gen_todo.py => docs/gen_todo.py (96%) rename parse_bandwidth_log.py => tools/parse_bandwidth_log.py (100%) rename parse_buffer_log.py => tools/parse_buffer_log.py (100%) rename parse_dht_log.py => tools/parse_dht_log.py (100%) rename parse_dht_rtt.py => tools/parse_dht_rtt.py (100%) rename parse_dht_stats.py => tools/parse_dht_stats.py (100%) rename parse_disk_access.py => tools/parse_disk_access.py (100%) rename parse_disk_buffer_log.py => tools/parse_disk_buffer_log.py (100%) rename parse_disk_log.py => tools/parse_disk_log.py (100%) rename parse_memory_log.py => tools/parse_memory_log.py (100%) rename parse_peer_log.py => tools/parse_peer_log.py (100%) rename parse_sample.py => tools/parse_sample.py (100%) rename parse_session_stats.py => tools/parse_session_stats.py (100%) rename parse_utp_log.py => tools/parse_utp_log.py (100%) diff --git a/gen_todo.py b/docs/gen_todo.py similarity index 96% rename from gen_todo.py rename to docs/gen_todo.py index 5f9673176..c939a23a9 100644 --- a/gen_todo.py +++ b/docs/gen_todo.py @@ -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('''