CWD=`pwd` VERSION=3.3 cd /tmp tar xzvf $CWD/BitTorrent-$VERSION.tar.gz cd BitTorrent-$VERSION chown -R root.root . find . -perm 775 -exec chmod 755 {} \; find . -perm 664 -exec chmod 644 {} \; python setup.py build install # Add btdownloadxterm.sh (this just opens an xterm for btdownloadcurses.py so # that it can work as a MIME handler from mailcap): zcat $CWD/btdownloadxterm.sh > /usr/bin/btdownloadxterm.sh chmod 755 /usr/bin/btdownloadxterm.sh mkdir -p /usr/doc/BitTorrent-$VERSION cp -a \ BUILD.windows.txt INSTALL.unix.txt LICENSE.txt README.txt credits.txt \ /usr/doc/BitTorrent-$VERSION mkdir -p /install cat $CWD/slack-desc > /install/slack-desc # Add support for using btdownloadcurses.py instead of btdownloadgui.py in /etc/mailcap: zcat $CWD/doinst.sh > /install/doinst.sh