~certify-web-dev/twisted/certify-trunk

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Moshe Zadka
  • Date: 2002-03-08 07:14:16 UTC
  • Revision ID: james.westby@ubuntu.com-20020308071416-oxvuw76tpcpi5v1q
Tags: upstream-0.15.5
ImportĀ upstreamĀ versionĀ 0.15.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
#-*- makefile -*-
 
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.
 
6
 
 
7
# Uncomment this to turn on verbose mode.
 
8
#export DH_VERBOSE=1
 
9
 
 
10
# This is the debhelper compatability version to use.
 
11
export DH_COMPAT=1
 
12
 
 
13
build: build-stamp
 
14
build-stamp:
 
15
        dh_testdir
 
16
        /usr/bin/python2.1 setup.py build
 
17
        touch build-stamp
 
18
 
 
19
clean:
 
20
        dh_testdir
 
21
        dh_testroot
 
22
        rm -f build-stamp install-stamp
 
23
        rm -rf build
 
24
        find . -name "*.pyc" |xargs -r rm
 
25
        # Add here commands to clean up after the build process.
 
26
        dh_clean
 
27
 
 
28
install: install-stamp
 
29
install-stamp: build-stamp
 
30
        dh_testdir
 
31
        dh_testroot
 
32
        dh_clean -k
 
33
        dh_installdirs
 
34
 
 
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/*
 
47
        touch install-stamp
 
48
 
 
49
binary-indep: build install
 
50
 
 
51
binary-arch: build install
 
52
        dh_testdir
 
53
        dh_testroot
 
54
        dh_strip
 
55
        dh_compress
 
56
        dh_installchangelogs
 
57
        dh_fixperms
 
58
        dh_installdeb
 
59
        dh_shlibdeps
 
60
        dh_gencontrol
 
61
        dh_md5sums
 
62
        dh_builddeb
 
63
 
 
64
source diff:                                                                  
 
65
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
 
66
 
 
67
binary: binary-indep binary-arch
 
68
.PHONY: build clean binary-indep binary-arch binary install