~peter-pearse/ubuntu/natty/tcl8.4/prop001

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Chris Waters, Sergei Golovan, Chris Waters
  • Date: 2007-07-25 04:21:47 UTC
  • Revision ID: james.westby@ubuntu.com-20070725042147-v30r07k3345cocy9
Tags: 8.4.15-1
* New maintainer Tcl/Tk Debian Packagers
  <pkg-tcltk-devel@lists.alioth.debian.org>.

[ Sergei Golovan ]
* New upstream release (closes: #400820, #424055, #426251).
* Use quilt for patch management.
* Fixed sections inside manual pages.
* Added get-orig-source target to debian/rules.
* Added headers from compat directory to tcl8.4-dev package.
* Added list of copyright holders and files distributed under special
  conditions to debian/copyright (closes: #403169).
[Chris Waters]
* Added Anselm Lingnau to uploaders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
 
2
# debian/rules that uses debhelper.
 
3
 
 
4
# Uncomment this to turn on verbose mode.
 
5
#export DH_VERBOSE=1
 
6
 
 
7
export QUILT_PATCHES := debian/patches
2
8
 
3
9
v = 8.4
4
10
 
 
11
unpatch:
 
12
        dh_testdir
 
13
        -quilt pop -a
 
14
        rm -rf patch-stamp .pc
 
15
 
 
16
patch: patch-stamp
 
17
patch-stamp:
 
18
        dh_testdir
 
19
        quilt push -a
 
20
        touch patch-stamp
 
21
 
5
22
build: build-stamp
6
 
build-stamp:
 
23
build-stamp: patch-stamp
7
24
        dh_testdir
8
25
 
9
26
# so so ugly but it works...
23
40
 
24
41
        touch build-stamp
25
42
 
26
 
clean:
 
43
clean: clean-patched unpatch
 
44
clean-patched:
27
45
        dh_testdir
28
46
        dh_testroot
29
47
        rm -f build-stamp install-stamp
57
75
        cp generic/*.h debian/tmp/usr/include/tcl$(v)/tcl-private/generic
58
76
        install -d debian/tmp/usr/include/tcl$(v)/tcl-private/unix
59
77
        cp unix/*.h debian/tmp/usr/include/tcl$(v)/tcl-private/unix
 
78
        install -d debian/tmp/usr/include/tcl$(v)/tcl-private/compat
 
79
        cp compat/*.h debian/tmp/usr/include/tcl$(v)/tcl-private/compat
60
80
# Fix up the manpages.
61
81
        cd debian/tmp/usr/share/man/man1 && \
62
 
          mv tclsh.1.gz tclsh$(v).1.gz
 
82
          zcat tclsh.1.gz | sed -e 's/(n)/(3tcl)/g' | gzip -9 > tclsh$(v).1.gz && \
 
83
          rm tclsh.1.gz
63
84
        cd debian/tmp/usr/share/man/man3 && \
64
85
          for f in *.[3n].gz ; do \
65
86
             f2=$$(echo $$f | sed -e 's/\.[3n]/.3tcl/') ; \
68
89
                rm $$f ; \
69
90
                ln -sf $$l $$f2 ; \
70
91
             else \
71
 
                mv $$f $$f2 ; \
 
92
                zcat $$f | sed -e 's/^\.TH \([^ ]\+\|"[^"]\+"\) [3n]/.TH \1 3tcl/' \
 
93
                               -e 's/\(Tk_[0-9A-Za-z]*\)(3)/\1(3tk)/g' \
 
94
                               -e 's/\([A-Z][0-9A-Za-z_]*\)(3)/\1(3tcl)/g' \
 
95
                               -e 's/send(n)/send(3tk)/g' \
 
96
                               -e 's/text(n)/text(3tk)/g' \
 
97
                               -e 's/tk(n)/tk(3tk)/g' \
 
98
                               -e 's/winfo(n)/winfo(3tk)/g' \
 
99
                               -e 's/(n)/(3tcl)/g' \
 
100
                         | gzip -9 >$$f2 ; \
 
101
                rm $$f ; \
72
102
             fi ; \
73
103
          done
74
104
 
115
145
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
116
146
 
117
147
binary: binary-indep binary-arch
118
 
.PHONY: build clean binary-indep binary-arch binary install
 
148
 
 
149
get-orig-source:
 
150
        wget -O tcl8.4_8.4.15.orig.tar.gz \
 
151
             http://prdownloads.sourceforge.net/tcl/tcl8.4.15-src.tar.gz
 
152
 
 
153
.PHONY: patch unpatch clean-patched build clean binary-indep binary-arch binary install get-orig-source
 
154