Skip to content

Commit

Permalink
Finally switch to dh v7 style debian/rules file
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaran committed Jul 4, 2013
1 parent e205936 commit d071744
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 49 deletions.
12 changes: 7 additions & 5 deletions debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ debian-goodies (0.62) UNRELEASED; urgency=low
[ Axel Beckert ]
* Bump debhelper compatibility to 7 to be able to use some more recent
features. Update versioned debhelper build-dependency accordingly.
* Revamp debian/rules
+ No more remove stamp files manually.
* Use debian/links instead of calling ln manually in debian/rules
* Use dh_install/dh_link to install all the scripts
* Use debian/manpages instead of parameters to dh_installman
* Use debian/docs instead of parameters to dh_installdocs
* Fix lintian warning dh-clean-k-is-deprecated and use dh_prep
+ Use debian/links instead of calling ln manually in debian/rules
+ Use dh_install/dh_link to install all the scripts
+ Use debian/manpages instead of parameters to dh_installman
+ Use debian/docs instead of parameters to dh_installdocs
+ Fix lintian warning dh-clean-k-is-deprecated and use dh_prep
+ Finally switch to dh v7 style debian/rules file
* Apply wrap-and-sort

-- Axel Beckert <abe@debian.org> Thu, 04 Jul 2013 17:28:35 +0200
Expand Down
48 changes: 4 additions & 44 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -1,55 +1,15 @@
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PODDOC=debget dglob dgrep dpigs

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
dh_testdir
%:
dh $@

override_dh_auto_install:
for prog in $(PODDOC); do pod2man -c "Debian-goodies documentation" $$prog.pod > $$prog.1; done

touch build-stamp

clean:
dh_testdir
dh_testroot
override_dh_auto_clean:
for prog in $(PODDOC); do rm -f $$prog.1; done

dh_clean

install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
dh_install

# Build architecture-dependent files here.
# We have nothing to do by default.
binary-arch: build install

# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installman
# dh_undocumented
dh_installchangelogs
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure

0 comments on commit d071744

Please sign in to comment.