#!/bin/bash

#
# This script launches bittorrent tracker on localhost to facilitate debugging
# in the absense of network. Tracker will listen on port 8888. File READTHEM will
# be provided by the local client, which will be launched as well
#

unset http_proxy
bttrack --port 8888 --dfile bttrack.recent > bttrack.out 2> bttrack.err &
rm -f configure.torrent && btmakemetafile configure http://localhost:8888/announce --piece_size_pow2 15 
btdownloadcurses ./configure.torrent --minport 9881 --maxport 9891
