~ubuntu-branches/ubuntu/feisty/equivs/feisty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Peter Samuelson
  • Date: 2006-02-28 02:01:16 UTC
  • Revision ID: james.westby@ubuntu.com-20060228020116-53lp3rp6zx3pr4k7
Tags: 2.0.7
* New maintainer.  (Closes: #350835)
* Acknowledge NMU.  (Closes: #201852, #218443, #237963, #251547)
* Add file COPYING, the GNU GPL v2, to top level of source tree.
* Update both build-time and runtime use of debhelper to v4.
  (Closes: #320619)
* debian/copyright, debian/rules: cleanups
* debian/control:
  - standards version 3.6.2 (no changes needed)
  - rewrite description
  - drop 'perl5' alternative dependency; the perl5 package disappeared
    about 3 release cycles ago
* template/debian/copyright: update FSF address.
* template/debian/control.in: edit description, set maintainer to
  root@localhost, update standards version, add correct debhelper
  Build-Depends
* template/debian/rules: streamline somewhat.
* equivs-build: support Replaces: field.  (Closes: #118526)
* equivs-build, template/debian/README.Debian.in:
  use "@" instead of the ISO-8859-1 section symbol for the variable
  escapes, to make life slightly easier for users of other charsets.
  - equivs-build.pod: update (and fix) the documentation for this
* equivs-build: allow comments in control file.
  - template.ctl: comment out most of the entries, to save the user some
    time in common cases.  Also mention that packages lists are all
    comma-separated.
* equivs-build: Lots of code cleanups.  Highlights:
  - Use File::Temp::tempdir.  This removes the dir upon normal exit.  On
    abend, tell the user where it is so she can examine and remove it.
  - Print usage message to STDERR, not STDOUT
  - Actually bother to close all the files we open
  - die with "\n".  I doubt users care about source code line numbers.
  - 3-arg open(), multi-arg system(), and in general try to look less
    like Perl 4
  - Delete outdated or useless comments, commented-out code, unneeded
    variables, and redundant integrity checks
  - Eliminate most use of global variables
  The net effect is to shrink the file by about 20%.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
3
3
# This version is for packages that are architecture independent.
4
4
 
5
 
# Uncomment this to turn on verbose mode.
6
5
#export DH_VERBOSE=1
7
 
 
8
 
build: build-stamp
9
 
build-stamp:
10
 
        dh_testdir
11
 
 
12
 
        # Add here commands to compile the package.
13
 
 
14
 
        pod2man --section=1 --release="`date +'%d %b %Y'`"\
15
 
        --center="Debian/GNU" --date=' '\
16
 
        debian/equivs-control.pod > debian/equivs-control.1 
17
 
 
18
 
        pod2man --section=1 --release="`date +'%d %b %Y'`"\
19
 
        --center="Debian/GNU" --date=' '\
20
 
        debian/equivs-build.pod > debian/equivs-build.1 
21
 
 
22
 
        touch build-stamp
 
6
PKG := equivs
 
7
MANPAGES := debian/equivs-control.1 debian/equivs-build.1
 
8
 
 
9
%.1: %.pod
 
10
        pod2man --section=1 --release="$(date +'%d %b %Y')" \
 
11
        --center="Debian/GNU" --date=' ' $< > $@
 
12
 
 
13
build: $(MANPAGES)
23
14
 
24
15
clean:
25
16
        dh_testdir
26
17
        dh_testroot
27
 
        rm -f build-stamp install-stamp
28
 
 
29
 
        # Add here commands to clean up after the build process.
30
 
 
31
 
        -rm -f debian/equivs-build.1 debian/equivs-control.1
 
18
        $(RM) $(MANPAGES)
32
19
        dh_clean
33
20
 
34
 
install: install-stamp
35
 
install-stamp: build-stamp
 
21
install: build
36
22
        dh_testdir
37
23
        dh_testroot
38
24
        dh_clean -k
39
 
        dh_installdirs
40
 
 
41
 
        # Add here commands to install the package into debian/tmp.
42
 
        cp -R usr debian/tmp
43
 
 
44
 
        touch install-stamp
 
25
 
 
26
        mkdir -p debian/$(PKG)
 
27
        cp -la usr debian/$(PKG)
 
28
 
 
29
# Build architecture-dependent packages - nothing to do here
 
30
binary-arch: build install
45
31
 
46
32
# Build architecture-independent files here.
47
33
binary-indep: build install
48
 
#       dh_testversion
49
34
        dh_testdir
50
35
        dh_testroot
51
36
        dh_installdocs
52
37
        dh_installexamples
53
 
        dh_installmanpages
54
 
#       dh_undocumented
 
38
        dh_installman
55
39
        dh_installchangelogs
56
40
        dh_link
57
41
        dh_compress
61
45
        dh_md5sums
62
46
        dh_builddeb
63
47
 
64
 
# Build architecture-dependent files here.
65
 
binary-arch: build install
66
 
# We have nothing to do by default.
67
 
 
68
48
source diff:
69
49
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
70
50