/usr/bin/btcompletedir.bittornado is in bittornado 0.3.18-10ubuntu3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #!/usr/bin/python
# Written by Bram Cohen
# see LICENSE.txt for license information
from BitTornado import PSYCO
if PSYCO.psyco:
try:
import psyco
assert psyco.__version__ >= 0x010100f0
psyco.full()
except:
pass
from sys import argv, version, exit
assert version >= '2', "Install Python 2.0 or greater"
from os.path import split
from BitTornado.BT1.makemetafile import defaults, completedir, print_announcelist_details
from BitTornado.parseargs import parseargs, formatDefinitions
if len(argv) < 3:
a,b = split(argv[0])
print 'Usage: ' + b + ' <trackerurl> <dir> [dir...] [params...]'
print 'makes a .torrent file for every file or directory present in each dir.'
print
print formatDefinitions(defaults, 80)
print_announcelist_details()
print ('')
exit(2)
try:
config, args = parseargs(argv[1:], defaults, 2, None)
for dir in args[1:]:
completedir(dir, args[0], config)
except ValueError, e:
print 'error: ' + str(e)
print 'run with no args for parameter explanations'
|