debian/rules
author David Douard <david.douard@logilab.fr>
Mon, 03 Nov 2014 11:12:35 +0100
changeset 371 e9ce904b62a9
parent 363 2eb6c8083edd
permissions -rwxr-xr-x
[test] add unit tests for ruleset We extract the rules building logic from readfile into a Ruleset.buildrules() method to ease testing.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
97
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     1
#!/usr/bin/make -f
189
56910e62871a Use dh(1) for very short debian/rules.
Paul Crowley <paul@lshift.net>
parents: 188
diff changeset
     2
%:
363
2eb6c8083edd Tell dh to use python2
Paul Crowley <paul@lshift.net>
parents: 360
diff changeset
     3
	dh --with python2 $@
97
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     4
189
56910e62871a Use dh(1) for very short debian/rules.
Paul Crowley <paul@lshift.net>
parents: 188
diff changeset
     5
override_dh_auto_install:
172
5dd3698fad54 Adapt Debian stuff to new build process
Paul Crowley <paul@lshift.net>
parents: 116
diff changeset
     6
	$(MAKE) installfiles \
204
d46ef29ab17a Merge in makefile changes, update to DESTDIR
Paul Crowley <paul@lshift.net>
parents: 189
diff changeset
     7
	    DESTDIR=./debian/mercurial-server/ \
d46ef29ab17a Merge in makefile changes, update to DESTDIR
Paul Crowley <paul@lshift.net>
parents: 189
diff changeset
     8
	    PREFIX=/usr/share
97
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     9
360
3b4e568ded2c Use dh_python2 as per http://wiki.debian.org/Python/TransitionToDHPython2
Paul Crowley <paul@lshift.net>
parents: 233
diff changeset
    10
override_dh_python2:
3b4e568ded2c Use dh_python2 as per http://wiki.debian.org/Python/TransitionToDHPython2
Paul Crowley <paul@lshift.net>
parents: 233
diff changeset
    11
	dh_python2 /usr/share/mercurial-server/mercurialserver
97
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    12
233
60c2d676a754 Install NEWS
Paul Crowley <paul@lshift.net>
parents: 204
diff changeset
    13
override_dh_installchangelogs:
60c2d676a754 Install NEWS
Paul Crowley <paul@lshift.net>
parents: 204
diff changeset
    14
	dh_installchangelogs NEWS
60c2d676a754 Install NEWS
Paul Crowley <paul@lshift.net>
parents: 204
diff changeset
    15