Merge pull request #27 from Chocobo1/py2

Project cleanup
This commit is contained in:
Arvid Norberg 2015-07-12 10:58:30 -04:00
commit 6241958aee
38 changed files with 223 additions and 184 deletions

15
.gitignore vendored Normal file
View File

@ -0,0 +1,15 @@
*.lo
*.la
*.m4
*.in
*.pc
*.libs
*.deps
*.cache
*.dirstamp
bin
config*
Makefile
build-aux

View File

@ -36,8 +36,7 @@ install:
- 'echo "using gcc : : ccache g++ ;" > ~/user-config.jam'
- 'echo "using clang : : ccache clang++ ;" >> ~/user-config.jam'
- 'echo "using python : 2.7 ;" >> ~/user-config.jam'
- ccache --show-stats
- ccache -V
- ccache -V && ccache --show-stats && ccache --zero-stats
- which $CXX
- ls -la `which $CXX`

0
bindings/c/Jamfile Executable file → Normal file
View File

0
bindings/python/Jamfile Executable file → Normal file
View File

2
bindings/python/make_torrent.py Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/bin/python
#!/usr/bin/env python
import sys
import os

2
bindings/python/rss_reader.py Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import sys
import libtorrent as lt

2
docs/gen_reference_doc.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
import glob
import os
import sys

2
docs/gen_settings_doc.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
f = open('../include/libtorrent/settings_pack.hpp')
out = open('settings.rst', 'w+')

2
docs/gen_stats_doc.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
counter_types = {}
f = open('../include/libtorrent/performance_counters.hpp')

2
docs/gen_todo.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
import glob
import os

2
examples/run_benchmarks.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
import sys
import os
import resource

2
setup.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
import os
os.chdir('bindings/python')
execfile('setup.py')

0
test/http.py Normal file → Executable file
View File

2
test/socks.py Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
"""Minimal non-feature complete socks proxy"""

2
test/web_server.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
import BaseHTTPServer
import SimpleHTTPServer
import sys

2
tools/clean.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
import os
import shutil
import glob

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#!/usr/bin/env python
import socket
import sys

0
tools/gprof2dot.py Normal file → Executable file
View File

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#!/usr/bin/env python
import os, sys, time
keys = [['upload rate', 'x1y1', 6], ['history entries', 'x1y2', 10], ['queue', 'x1y2', 4]]

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#!/usr/bin/env python
# Copyright Arvid Norberg 2008. Use, modification and distribution is
# subject to the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#!/usr/bin/env python
import sys
import os
import time

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#!/usr/bin/env python
import sys
import os

2
tools/parse_dht_stats.py Normal file → Executable file
View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#!/usr/bin/env python
import sys
import os

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#!/usr/bin/env python
import os, sys, time

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#!/usr/bin/env python
import os, sys, time

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#!/usr/bin/env python
# Copyright Arvid Norberg 2008. Use, modification and distribution is
# subject to the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

1
tools/parse_lookup_log.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# this is meant to parse the dht_lookups.log generated by parse_dht_log.py
import os

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#!/usr/bin/env python
import os, sys, time
# usage: memory.log memory_index.log

1
tools/parse_peer_log.py Normal file → Executable file
View File

@ -1,4 +1,5 @@
#!/usr/bin/env python
import glob
import os
import sys

2
tools/parse_sample.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
import sys
# to use this script, first run 'sample' to sample your libtorrent based process

View File

@ -1,4 +1,4 @@
#!/bin/python
#!/usr/bin/env python
# Copyright (c) 2013, Arvid Norberg
# All rights reserved.

2
tools/parse_utp_log.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
import os, sys, time
# usage: parse_log.py log-file [socket-index to focus on]

2
tools/run_benchmark.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
import os
import time
import shutil

2
tools/run_regression_tests.py Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/bin/python
#!/usr/bin/env python
# Copyright (c) 2013, Arvid Norberg
# All rights reserved.

View File

@ -1,5 +1,4 @@
#!/bin/python
#!/usr/bin/env python
# Copyright (c) 2013, Arvid Norberg
# All rights reserved.

3
tools/set_version.py Normal file → Executable file
View File

@ -1,4 +1,5 @@
#! /usr/bin/env python
#!/usr/bin/env python
import os
import sys
import glob

3
tools/update_copyright.py Normal file → Executable file
View File

@ -1,4 +1,5 @@
#! /usr/bin/env python
#!/usr/bin/env python
import os
import sys
import glob