3
# Made with the aid of dh_make, by Craig Small
4
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
5
# Some lines taken from debmake, by Christoph Lameter.
7
# Uncomment this to turn on verbose mode.
10
# This is the debhelper compatability version to use.
16
/usr/bin/python2.1 setup.py build
22
rm -f build-stamp install-stamp
24
find . -name "*.pyc" |xargs -r rm
25
# Add here commands to clean up after the build process.
28
install: install-stamp
29
install-stamp: build-stamp
35
# Add here commands to install the package into debian/tmp.
36
cp -rf build/lib*/twisted debian/tmp/usr/lib/python2.1/site-packages/
37
cp twisted/im/instancemessenger.glade debian/tmp/usr/lib/python2.1/site-packages/twisted/im
38
cp twisted/plugins.tml debian/tmp/usr/lib/python2.1/site-packages/twisted/
39
cp TODO README CREDITS doc/*.html debian/tmp/usr/share/doc/twisted
40
cp doc/examples/*.py debian/tmp/usr/share/doc/twisted/examples
41
gzip -9 debian/tmp/usr/share/doc/twisted/examples/*.py
42
cp debian/copyright debian/tmp/usr/share/doc/twisted/
43
cp bin/eco bin/manhole bin/tap2deb bin/mktap bin/gnusto bin/twistd bin/im bin/t-im bin/faucet debian/tmp/usr/bin
44
for file in debian/tmp/usr/bin/*;do sed '1s|.*|#!/usr/bin/python2.1|' $$file > $$file.$$$$;cat $$file.$$$$ > $$file;rm $$file.$$$$;done
45
cp doc/man/*.1 debian/tmp/usr/share/man/man1/
46
gzip -9 debian/tmp/usr/share/man/man1/*
49
binary-indep: build install
51
binary-arch: build install
65
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
67
binary: binary-indep binary-arch
68
.PHONY: build clean binary-indep binary-arch binary install