Show More
@@ -1,30 +1,32 b'' | |||||
1 | #!/usr/bin/make -f |
|
1 | #!/usr/bin/make -f | |
2 | # Uncomment this to turn on verbose mode. |
|
2 | # Uncomment this to turn on verbose mode. | |
3 | # export DH_VERBOSE=1 |
|
3 | # export DH_VERBOSE=1 | |
4 |
|
4 | |||
5 | CPUS=$(shell cat /proc/cpuinfo | grep -E ^processor | wc -l) |
|
5 | CPUS=$(shell cat /proc/cpuinfo | grep -E ^processor | wc -l) | |
6 |
|
6 | |||
7 | %: |
|
7 | %: | |
8 | dh $@ --with python2 |
|
8 | dh $@ --with python2 | |
9 |
|
9 | |||
10 | override_dh_auto_test: |
|
10 | override_dh_auto_test: | |
11 | http_proxy='' dh_auto_test -- TESTFLAGS="-j$(CPUS)" |
|
11 | http_proxy='' dh_auto_test -- TESTFLAGS="-j$(CPUS)" | |
12 |
|
12 | |||
13 | override_dh_python2: |
|
13 | override_dh_python2: | |
14 | dh_python2 |
|
14 | dh_python2 | |
15 | find debian/mercurial/usr/share -type d -empty -delete |
|
15 | find debian/mercurial/usr/share -type d -empty -delete | |
16 |
|
16 | |||
17 | override_dh_install: |
|
17 | override_dh_install: | |
18 | python$(PYVERS) setup.py install --root $(CURDIR)/debian/mercurial --install-layout=deb |
|
18 | python$(PYVERS) setup.py install --root $(CURDIR)/debian/mercurial --install-layout=deb | |
19 | # remove arch-independent python stuff |
|
19 | # remove arch-independent python stuff | |
20 | find $(CURDIR)/debian/mercurial/usr/lib \ |
|
20 | find $(CURDIR)/debian/mercurial/usr/lib \ | |
21 | ! -name '*.so' ! -type d -delete , \ |
|
21 | ! -name '*.so' ! -type d -delete , \ | |
22 | -type d -empty -delete |
|
22 | -type d -empty -delete | |
23 | python$(PYVERS) setup.py install --root $(CURDIR)/debian/mercurial-common --install-layout=deb |
|
23 | python$(PYVERS) setup.py install --root $(CURDIR)/debian/mercurial-common --install-layout=deb | |
24 | make install-doc PREFIX=$(CURDIR)/debian/mercurial-common/usr |
|
24 | make install-doc PREFIX=$(CURDIR)/debian/mercurial-common/usr | |
25 | # remove arch-dependent python stuff |
|
25 | # remove arch-dependent python stuff | |
26 | find $(CURDIR)/debian/mercurial-common/usr/lib \ |
|
26 | find $(CURDIR)/debian/mercurial-common/usr/lib \ | |
27 | -name '*.so' ! -type d -delete , \ |
|
27 | -name '*.so' ! -type d -delete , \ | |
28 | -type d -empty -delete |
|
28 | -type d -empty -delete | |
29 | cp contrib/hg-ssh $(CURDIR)/debian/mercurial-common/usr/bin |
|
29 | cp contrib/hg-ssh $(CURDIR)/debian/mercurial-common/usr/bin | |
|
30 | mkdir -p $(CURDIR)/debian/mercurial-common/etc/mercurial/hgrc.d/ | |||
|
31 | cp contrib/debian/*.rc $(CURDIR)/debian/mercurial-common/etc/mercurial/hgrc.d/ | |||
30 | rm $(CURDIR)/debian/mercurial-common/usr/bin/hg |
|
32 | rm $(CURDIR)/debian/mercurial-common/usr/bin/hg |
General Comments 0
You need to be logged in to leave comments.
Login now