~ubuntu-branches/ubuntu/edgy/equivs/edgy

« back to all changes in this revision

Viewing changes to usr/share/equivs/template/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:
1
1
#!/usr/bin/make -f
2
2
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
3
3
 
4
 
# Uncomment this to turn on verbose mode.
5
4
#export DH_VERBOSE=1
6
5
 
7
 
build: build-stamp
8
 
build-stamp:
9
 
        dh_testdir
10
 
        touch build-stamp
 
6
build:
11
7
 
12
8
clean:
13
9
        dh_testdir
14
10
        dh_testroot
15
 
        rm -f build-stamp install-stamp
16
 
 
17
 
        # Add here commands to clean up after the build process.
18
 
 
19
11
        dh_clean
20
12
 
21
 
install: install-stamp
22
 
install-stamp: build-stamp
 
13
install: build
23
14
        dh_testdir
24
15
        dh_testroot
25
16
        dh_clean -k
26
17
 
27
 
        # Add here commands to install the package into debian/tmp.
28
 
 
29
 
        touch install-stamp
30
 
 
31
 
# Build architecture-independent files here.
32
 
binary-indep: build install
33
 
# We have nothing to do by default.
34
 
 
35
 
# Build architecture-dependent files here.
36
 
binary-arch: build install
 
18
binary-indep: install
 
19
 
 
20
binary-arch: install
37
21
        dh_testdir
38
22
        dh_testroot
39
23
        dh_installdocs
45
29
        dh_md5sums
46
30
        dh_builddeb
47
31
 
48
 
source diff:                                                                  
49
 
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
50
 
 
51
32
binary: binary-indep binary-arch
52
33
.PHONY: build clean binary-indep binary-arch binary install