Show More
@@ -164,6 +164,37 b' i18n/hg.pot: $(PYFILES) $(DOCFILES) i18n' | |||||
164 |
|
164 | |||
165 | # Packaging targets |
|
165 | # Packaging targets | |
166 |
|
166 | |||
|
167 | packaging_targets := \ | |||
|
168 | centos5 \ | |||
|
169 | centos6 \ | |||
|
170 | centos7 \ | |||
|
171 | deb \ | |||
|
172 | docker-centos5 \ | |||
|
173 | docker-centos6 \ | |||
|
174 | docker-centos7 \ | |||
|
175 | docker-debian-jessie \ | |||
|
176 | docker-debian-stretch \ | |||
|
177 | docker-fedora20 \ | |||
|
178 | docker-fedora21 \ | |||
|
179 | docker-ubuntu-trusty \ | |||
|
180 | docker-ubuntu-trusty-ppa \ | |||
|
181 | docker-ubuntu-xenial \ | |||
|
182 | docker-ubuntu-xenial-ppa \ | |||
|
183 | docker-ubuntu-artful \ | |||
|
184 | docker-ubuntu-artful-ppa \ | |||
|
185 | docker-ubuntu-bionic \ | |||
|
186 | docker-ubuntu-bionic-ppa \ | |||
|
187 | fedora20 \ | |||
|
188 | fedora21 \ | |||
|
189 | linux-wheels \ | |||
|
190 | linux-wheels-x86_64 \ | |||
|
191 | linux-wheels-i686 \ | |||
|
192 | ppa | |||
|
193 | ||||
|
194 | # Forward packaging targets for convenience. | |||
|
195 | $(packaging_targets): | |||
|
196 | $(MAKE) -C contrib/packaging $@ | |||
|
197 | ||||
167 | osx: |
|
198 | osx: | |
168 | rm -rf build/mercurial |
|
199 | rm -rf build/mercurial | |
169 | /usr/bin/python2.7 setup.py install --optimize=1 \ |
|
200 | /usr/bin/python2.7 setup.py install --optimize=1 \ | |
@@ -203,121 +234,8 b' osx:' | |||||
203 | --resources contrib/packaging/macosx/ \ |
|
234 | --resources contrib/packaging/macosx/ \ | |
204 | "$${OUTPUTDIR:-dist/}"/Mercurial-"$${HGVER}"-macosx"$${OSXVER}".pkg |
|
235 | "$${OUTPUTDIR:-dist/}"/Mercurial-"$${HGVER}"-macosx"$${OSXVER}".pkg | |
205 |
|
236 | |||
206 | deb: |
|
|||
207 | contrib/packaging/builddeb |
|
|||
208 |
|
||||
209 | ppa: |
|
|||
210 | contrib/packaging/builddeb --source-only |
|
|||
211 |
|
||||
212 | contrib/packaging/docker/debian-%: contrib/packaging/docker/debian.template |
|
|||
213 | sed "s/__CODENAME__/$*/" $< > $@ |
|
|||
214 |
|
||||
215 | docker-debian-jessie: contrib/packaging/docker/debian-jessie |
|
|||
216 | contrib/packaging/dockerdeb debian jessie |
|
|||
217 |
|
||||
218 | docker-debian-stretch: contrib/packaging/docker/debian-stretch |
|
|||
219 | contrib/packaging/dockerdeb debian stretch |
|
|||
220 |
|
||||
221 | contrib/packaging/docker/ubuntu-%: contrib/packaging/docker/ubuntu.template |
|
|||
222 | sed "s/__CODENAME__/$*/" $< > $@ |
|
|||
223 |
|
||||
224 | docker-ubuntu-trusty: contrib/packaging/docker/ubuntu-trusty |
|
|||
225 | contrib/packaging/dockerdeb ubuntu trusty |
|
|||
226 |
|
||||
227 | docker-ubuntu-trusty-ppa: contrib/packaging/docker/ubuntu-trusty |
|
|||
228 | contrib/packaging/dockerdeb ubuntu trusty --source-only |
|
|||
229 |
|
||||
230 | docker-ubuntu-xenial: contrib/packaging/docker/ubuntu-xenial |
|
|||
231 | contrib/packaging/dockerdeb ubuntu xenial |
|
|||
232 |
|
||||
233 | docker-ubuntu-xenial-ppa: contrib/packaging/docker/ubuntu-xenial |
|
|||
234 | contrib/packaging/dockerdeb ubuntu xenial --source-only |
|
|||
235 |
|
||||
236 | docker-ubuntu-artful: contrib/packaging/docker/ubuntu-artful |
|
|||
237 | contrib/packaging/dockerdeb ubuntu artful |
|
|||
238 |
|
||||
239 | docker-ubuntu-artful-ppa: contrib/packaging/docker/ubuntu-artful |
|
|||
240 | contrib/packaging/dockerdeb ubuntu artful --source-only |
|
|||
241 |
|
||||
242 | docker-ubuntu-bionic: contrib/packaging/docker/ubuntu-bionic |
|
|||
243 | contrib/packaging/dockerdeb ubuntu bionic |
|
|||
244 |
|
||||
245 | docker-ubuntu-bionic-ppa: contrib/packaging/docker/ubuntu-bionic |
|
|||
246 | contrib/packaging/dockerdeb ubuntu bionic --source-only |
|
|||
247 |
|
||||
248 | fedora20: |
|
|||
249 | mkdir -p packages/fedora20 |
|
|||
250 | contrib/packaging/buildrpm |
|
|||
251 | cp rpmbuild/RPMS/*/* packages/fedora20 |
|
|||
252 | cp rpmbuild/SRPMS/* packages/fedora20 |
|
|||
253 | rm -rf rpmbuild |
|
|||
254 |
|
||||
255 | docker-fedora20: |
|
|||
256 | mkdir -p packages/fedora20 |
|
|||
257 | contrib/packaging/dockerrpm fedora20 |
|
|||
258 |
|
||||
259 | fedora21: |
|
|||
260 | mkdir -p packages/fedora21 |
|
|||
261 | contrib/packaging/buildrpm |
|
|||
262 | cp rpmbuild/RPMS/*/* packages/fedora21 |
|
|||
263 | cp rpmbuild/SRPMS/* packages/fedora21 |
|
|||
264 | rm -rf rpmbuild |
|
|||
265 |
|
||||
266 | docker-fedora21: |
|
|||
267 | mkdir -p packages/fedora21 |
|
|||
268 | contrib/packaging/dockerrpm fedora21 |
|
|||
269 |
|
||||
270 | centos5: |
|
|||
271 | mkdir -p packages/centos5 |
|
|||
272 | contrib/packaging/buildrpm --withpython |
|
|||
273 | cp rpmbuild/RPMS/*/* packages/centos5 |
|
|||
274 | cp rpmbuild/SRPMS/* packages/centos5 |
|
|||
275 |
|
||||
276 | docker-centos5: |
|
|||
277 | mkdir -p packages/centos5 |
|
|||
278 | contrib/packaging/dockerrpm centos5 --withpython |
|
|||
279 |
|
||||
280 | centos6: |
|
|||
281 | mkdir -p packages/centos6 |
|
|||
282 | contrib/packaging/buildrpm --withpython |
|
|||
283 | cp rpmbuild/RPMS/*/* packages/centos6 |
|
|||
284 | cp rpmbuild/SRPMS/* packages/centos6 |
|
|||
285 |
|
||||
286 | docker-centos6: |
|
|||
287 | mkdir -p packages/centos6 |
|
|||
288 | contrib/packaging/dockerrpm centos6 --withpython |
|
|||
289 |
|
||||
290 | centos7: |
|
|||
291 | mkdir -p packages/centos7 |
|
|||
292 | contrib/packaging/buildrpm |
|
|||
293 | cp rpmbuild/RPMS/*/* packages/centos7 |
|
|||
294 | cp rpmbuild/SRPMS/* packages/centos7 |
|
|||
295 |
|
||||
296 | docker-centos7: |
|
|||
297 | mkdir -p packages/centos7 |
|
|||
298 | contrib/packaging/dockerrpm centos7 |
|
|||
299 |
|
||||
300 | linux-wheels: linux-wheels-x86_64 linux-wheels-i686 |
|
|||
301 |
|
||||
302 | linux-wheels-x86_64: |
|
|||
303 | docker run -e "HGTEST_JOBS=$(shell nproc)" --rm -ti -v `pwd`:/src quay.io/pypa/manylinux1_x86_64 /src/contrib/packaging/build-linux-wheels.sh |
|
|||
304 |
|
||||
305 | linux-wheels-i686: |
|
|||
306 | docker run -e "HGTEST_JOBS=$(shell nproc)" --rm -ti -v `pwd`:/src quay.io/pypa/manylinux1_i686 linux32 /src/contrib/packaging/build-linux-wheels.sh |
|
|||
307 |
|
||||
308 | .PHONY: help all local build doc cleanbutpackages clean install install-bin \ |
|
237 | .PHONY: help all local build doc cleanbutpackages clean install install-bin \ | |
309 | install-doc install-home install-home-bin install-home-doc \ |
|
238 | install-doc install-home install-home-bin install-home-doc \ | |
310 | dist dist-notests check tests check-code format-c update-pot \ |
|
239 | dist dist-notests check tests check-code format-c update-pot \ | |
311 | osx deb ppa \ |
|
240 | $(packaging_targets) \ | |
312 | docker-debian-jessie \ |
|
241 | osx | |
313 | docker-debian-stretch \ |
|
|||
314 | docker-ubuntu-trusty docker-ubuntu-trusty-ppa \ |
|
|||
315 | docker-ubuntu-xenial docker-ubuntu-xenial-ppa \ |
|
|||
316 | docker-ubuntu-artful docker-ubuntu-artful-ppa \ |
|
|||
317 | docker-ubuntu-bionic docker-ubuntu-bionic-ppa \ |
|
|||
318 | fedora20 docker-fedora20 \ |
|
|||
319 | fedora21 docker-fedora21 \ |
|
|||
320 | centos5 docker-centos5 \ |
|
|||
321 | centos6 docker-centos6 \ |
|
|||
322 | centos7 docker-centos7 \ |
|
|||
323 | linux-wheels |
|
@@ -1,323 +1,167 b'' | |||||
1 | # If you want to change PREFIX, do not just edit it below. The changed |
|
1 | $(eval HGROOT := $(shell cd ../..; pwd)) | |
2 | # value wont get passed on to recursive make calls. You should instead |
|
|||
3 | # override the variable on the command like: |
|
|||
4 | # |
|
|||
5 | # % make PREFIX=/opt/ install |
|
|||
6 |
|
||||
7 | export PREFIX=/usr/local |
|
|||
8 | PYTHON=python |
|
|||
9 | $(eval HGROOT := $(shell pwd)) |
|
|||
10 | HGPYTHONS ?= $(HGROOT)/build/pythons |
|
|||
11 | PURE= |
|
|||
12 | PYFILES:=$(shell find mercurial hgext doc -name '*.py') |
|
|||
13 | DOCFILES=mercurial/help/*.txt |
|
|||
14 | export LANGUAGE=C |
|
|||
15 | export LC_ALL=C |
|
|||
16 | TESTFLAGS ?= $(shell echo $$HGTESTFLAGS) |
|
|||
17 | OSXVERSIONFLAGS ?= $(shell echo $$OSXVERSIONFLAGS) |
|
|||
18 |
|
||||
19 | # Set this to e.g. "mingw32" to use a non-default compiler. |
|
|||
20 | COMPILER= |
|
|||
21 |
|
||||
22 | COMPILERFLAG_tmp_ = |
|
|||
23 | COMPILERFLAG_tmp_${COMPILER} ?= -c $(COMPILER) |
|
|||
24 | COMPILERFLAG=${COMPILERFLAG_tmp_${COMPILER}} |
|
|||
25 |
|
2 | |||
26 | help: |
|
3 | help: | |
27 |
@echo ' |
|
4 | @echo 'Packaging Make Targets' | |
28 | @echo ' all - build program and documentation' |
|
5 | @echo '' | |
29 | @echo ' install - install program and man pages to $$PREFIX ($(PREFIX))' |
|
6 | @echo 'docker-centos-{5, 6, 7}' | |
30 | @echo ' install-home - install with setup.py install --home=$$HOME ($(HOME))' |
|
7 | @echo ' Build an RPM for a specific CentOS version using Docker.' | |
31 | @echo ' local - build for inplace usage' |
|
8 | @echo '' | |
32 | @echo ' tests - run all tests in the automatic test suite' |
|
9 | @echo 'docker-debian-{jessie, stretch}' | |
33 | @echo ' test-foo - run only specified tests (e.g. test-merge1.t)' |
|
10 | @echo ' Build Debian packages specific to a Debian distro using Docker.' | |
34 | @echo ' dist - run all tests and create a source tarball in dist/' |
|
11 | @echo '' | |
35 | @echo ' clean - remove files created by other targets' |
|
12 | @echo 'docker-fedora-{20, 21}' | |
36 | @echo ' (except installed files or dist source tarball)' |
|
13 | @echo ' Build an RPM for a specific Fedora version using Docker.' | |
37 | @echo ' update-pot - update i18n/hg.pot' |
|
14 | @echo '' | |
38 | @echo |
|
15 | @echo 'docker-ubuntu-{trusty, xenial, artful, bionic}' | |
39 | @echo 'Example for a system-wide installation under /usr/local:' |
|
16 | @echo ' Build Debian package specific to an Ubuntu distro using Docker.' | |
40 | @echo ' make all && su -c "make install" && hg version' |
|
17 | @echo '' | |
41 | @echo |
|
18 | @echo 'docker-ubuntu-{trusty, xenial, artful, bionic}-ppa' | |
42 | @echo 'Example for a local installation (usable in this directory):' |
|
19 | @echo ' Build a source-only Debian package specific to an Ubuntu distro' | |
43 | @echo ' make local && ./hg version' |
|
20 | @echo ' using Docker.' | |
44 |
|
21 | @echo '' | ||
45 | all: build doc |
|
22 | @echo 'linux-wheels' | |
46 |
|
23 | @echo ' Build Linux manylinux wheels using Docker.' | ||
47 | local: |
|
24 | @echo '' | |
48 | $(PYTHON) setup.py $(PURE) \ |
|
25 | @echo 'linux-wheels-{x86_64, i686}' | |
49 | build_py -c -d . \ |
|
26 | @echo ' Build Linux manylinux wheels for a specific architecture using Docker' | |
50 | build_ext $(COMPILERFLAG) -i \ |
|
27 | @echo '' | |
51 | build_hgexe $(COMPILERFLAG) -i \ |
|
28 | @echo 'deb' | |
52 | build_mo |
|
29 | @echo ' Build a Debian package locally targeting the current system' | |
53 | env HGRCPATH= $(PYTHON) hg version |
|
30 | @echo '' | |
54 |
|
31 | @echo 'ppa' | ||
55 | build: |
|
32 | @echo ' Build a Debian source package locally targeting the current system' | |
56 | $(PYTHON) setup.py $(PURE) build $(COMPILERFLAG) |
|
33 | @echo '' | |
57 |
|
34 | @echo 'centos-{5, 6, 7}' | ||
58 | wheel: |
|
35 | @echo ' Build an RPM for a specific CentOS version locally' | |
59 | FORCE_SETUPTOOLS=1 $(PYTHON) setup.py $(PURE) bdist_wheel $(COMPILERFLAG) |
|
36 | @echo '' | |
60 |
|
37 | @echo 'fedora-{20, 21}' | ||
61 | doc: |
|
38 | @echo ' Build an RPM for a specific Fedora version locally' | |
62 | $(MAKE) -C doc |
|
|||
63 |
|
||||
64 | cleanbutpackages: |
|
|||
65 | -$(PYTHON) setup.py clean --all # ignore errors from this command |
|
|||
66 | find contrib doc hgext hgext3rd i18n mercurial tests hgdemandimport \ |
|
|||
67 | \( -name '*.py[cdo]' -o -name '*.so' \) -exec rm -f '{}' ';' |
|
|||
68 | rm -f MANIFEST MANIFEST.in hgext/__index__.py tests/*.err |
|
|||
69 | rm -f mercurial/__modulepolicy__.py |
|
|||
70 | if test -d .hg; then rm -f mercurial/__version__.py; fi |
|
|||
71 | rm -rf build mercurial/locale |
|
|||
72 | $(MAKE) -C doc clean |
|
|||
73 | $(MAKE) -C contrib/chg distclean |
|
|||
74 |
|
||||
75 | clean: cleanbutpackages |
|
|||
76 | rm -rf packages |
|
|||
77 |
|
||||
78 | install: install-bin install-doc |
|
|||
79 |
|
||||
80 | install-bin: build |
|
|||
81 | $(PYTHON) setup.py $(PURE) install --root="$(DESTDIR)/" --prefix="$(PREFIX)" --force |
|
|||
82 |
|
||||
83 | install-doc: doc |
|
|||
84 | cd doc && $(MAKE) $(MFLAGS) install |
|
|||
85 |
|
||||
86 | install-home: install-home-bin install-home-doc |
|
|||
87 |
|
||||
88 | install-home-bin: build |
|
|||
89 | $(PYTHON) setup.py $(PURE) install --home="$(HOME)" --prefix="" --force |
|
|||
90 |
|
||||
91 | install-home-doc: doc |
|
|||
92 | cd doc && $(MAKE) $(MFLAGS) PREFIX="$(HOME)" install |
|
|||
93 |
|
||||
94 | MANIFEST-doc: |
|
|||
95 | $(MAKE) -C doc MANIFEST |
|
|||
96 |
|
||||
97 | MANIFEST.in: MANIFEST-doc |
|
|||
98 | hg manifest | sed -e 's/^/include /' > MANIFEST.in |
|
|||
99 | echo include mercurial/__version__.py >> MANIFEST.in |
|
|||
100 | sed -e 's/^/include /' < doc/MANIFEST >> MANIFEST.in |
|
|||
101 |
|
||||
102 | dist: tests dist-notests |
|
|||
103 |
|
||||
104 | dist-notests: doc MANIFEST.in |
|
|||
105 | TAR_OPTIONS="--owner=root --group=root --mode=u+w,go-w,a+rX-s" $(PYTHON) setup.py -q sdist |
|
|||
106 |
|
||||
107 | check: tests |
|
|||
108 |
|
||||
109 | tests: |
|
|||
110 | cd tests && $(PYTHON) run-tests.py $(TESTFLAGS) |
|
|||
111 |
|
||||
112 | test-%: |
|
|||
113 | cd tests && $(PYTHON) run-tests.py $(TESTFLAGS) $@ |
|
|||
114 |
|
39 | |||
115 | testpy-%: |
|
40 | .PHONY: help | |
116 | @echo Looking for Python $* in $(HGPYTHONS) |
|
|||
117 | [ -e $(HGPYTHONS)/$*/bin/python ] || ( \ |
|
|||
118 | cd $$(mktemp --directory --tmpdir) && \ |
|
|||
119 | $(MAKE) -f $(HGROOT)/contrib/Makefile.python PYTHONVER=$* PREFIX=$(HGPYTHONS)/$* python ) |
|
|||
120 | cd tests && $(HGPYTHONS)/$*/bin/python run-tests.py $(TESTFLAGS) |
|
|||
121 |
|
||||
122 | check-code: |
|
|||
123 | hg manifest | xargs python contrib/check-code.py |
|
|||
124 |
|
||||
125 | format-c: |
|
|||
126 | clang-format --style file -i \ |
|
|||
127 | `hg files 'set:(**.c or **.cc or **.h) and not "listfile:contrib/clang-format-ignorelist"'` |
|
|||
128 |
|
||||
129 | update-pot: i18n/hg.pot |
|
|||
130 |
|
41 | |||
131 | i18n/hg.pot: $(PYFILES) $(DOCFILES) i18n/posplit i18n/hggettext |
|
42 | .PHONY: deb | |
132 | $(PYTHON) i18n/hggettext mercurial/commands.py \ |
|
43 | deb: | |
133 | hgext/*.py hgext/*/__init__.py \ |
|
44 | ./builddeb | |
134 | mercurial/fileset.py mercurial/revset.py \ |
|
45 | ||
135 | mercurial/templatefilters.py \ |
|
46 | .PHONY: ppa | |
136 | mercurial/templatefuncs.py \ |
|
47 | ppa: | |
137 | mercurial/templatekw.py \ |
|
48 | ./builddeb --source-only | |
138 | mercurial/filemerge.py \ |
|
|||
139 | mercurial/hgweb/webcommands.py \ |
|
|||
140 | mercurial/util.py \ |
|
|||
141 | $(DOCFILES) > i18n/hg.pot.tmp |
|
|||
142 | # All strings marked for translation in Mercurial contain |
|
|||
143 | # ASCII characters only. But some files contain string |
|
|||
144 | # literals like this '\037\213'. xgettext thinks it has to |
|
|||
145 | # parse them even though they are not marked for translation. |
|
|||
146 | # Extracting with an explicit encoding of ISO-8859-1 will make |
|
|||
147 | # xgettext "parse" and ignore them. |
|
|||
148 | echo $(PYFILES) | xargs \ |
|
|||
149 | xgettext --package-name "Mercurial" \ |
|
|||
150 | --msgid-bugs-address "<mercurial-devel@mercurial-scm.org>" \ |
|
|||
151 | --copyright-holder "Matt Mackall <mpm@selenic.com> and others" \ |
|
|||
152 | --from-code ISO-8859-1 --join --sort-by-file --add-comments=i18n: \ |
|
|||
153 | -d hg -p i18n -o hg.pot.tmp |
|
|||
154 | $(PYTHON) i18n/posplit i18n/hg.pot.tmp |
|
|||
155 | # The target file is not created before the last step. So it never is in |
|
|||
156 | # an intermediate state. |
|
|||
157 | mv -f i18n/hg.pot.tmp i18n/hg.pot |
|
|||
158 |
|
49 | |||
159 | %.po: i18n/hg.pot |
|
50 | docker/debian-%: docker/debian.template | |
160 | # work on a temporary copy for never having a half completed target |
|
51 | sed "s/__CODENAME__/$*/" $< > $@ | |
161 | cp $@ $@.tmp |
|
|||
162 | msgmerge --no-location --update $@.tmp $^ |
|
|||
163 | mv -f $@.tmp $@ |
|
|||
164 |
|
||||
165 | # Packaging targets |
|
|||
166 |
|
|
52 | ||
167 | osx: |
|
53 | .PHONY: docker-debian-jessie | |
168 | rm -rf build/mercurial |
|
54 | docker-debian-jessie: docker/debian-jessie | |
169 | /usr/bin/python2.7 setup.py install --optimize=1 \ |
|
55 | ./dockerdeb debian jessie | |
170 | --root=build/mercurial/ --prefix=/usr/local/ \ |
|
|||
171 | --install-lib=/Library/Python/2.7/site-packages/ |
|
|||
172 | make -C doc all install DESTDIR="$(PWD)/build/mercurial/" |
|
|||
173 | # Place a bogon .DS_Store file in the target dir so we can be |
|
|||
174 | # sure it doesn't get included in the final package. |
|
|||
175 | touch build/mercurial/.DS_Store |
|
|||
176 | # install zsh completions - this location appears to be |
|
|||
177 | # searched by default as of macOS Sierra. |
|
|||
178 | install -d build/mercurial/usr/local/share/zsh/site-functions/ |
|
|||
179 | install -m 0644 contrib/zsh_completion build/mercurial/usr/local/share/zsh/site-functions/_hg |
|
|||
180 | # install bash completions - there doesn't appear to be a |
|
|||
181 | # place that's searched by default for bash, so we'll follow |
|
|||
182 | # the lead of Apple's git install and just put it in a |
|
|||
183 | # location of our own. |
|
|||
184 | install -d build/mercurial/usr/local/hg/contrib/ |
|
|||
185 | install -m 0644 contrib/bash_completion build/mercurial/usr/local/hg/contrib/hg-completion.bash |
|
|||
186 | make -C contrib/chg \ |
|
|||
187 | HGPATH=/usr/local/bin/hg \ |
|
|||
188 | PYTHON=/usr/bin/python2.7 \ |
|
|||
189 | HGEXTDIR=/Library/Python/2.7/site-packages/hgext \ |
|
|||
190 | DESTDIR=../../build/mercurial \ |
|
|||
191 | PREFIX=/usr/local \ |
|
|||
192 | clean install |
|
|||
193 | mkdir -p $${OUTPUTDIR:-dist} |
|
|||
194 | HGVER=$$(python contrib/genosxversion.py $(OSXVERSIONFLAGS) build/mercurial/Library/Python/2.7/site-packages/mercurial/__version__.py) && \ |
|
|||
195 | OSXVER=$$(sw_vers -productVersion | cut -d. -f1,2) && \ |
|
|||
196 | pkgbuild --filter \\.DS_Store --root build/mercurial/ \ |
|
|||
197 | --identifier org.mercurial-scm.mercurial \ |
|
|||
198 | --version "$${HGVER}" \ |
|
|||
199 | build/mercurial.pkg && \ |
|
|||
200 | productbuild --distribution contrib/packaging/macosx/distribution.xml \ |
|
|||
201 | --package-path build/ \ |
|
|||
202 | --version "$${HGVER}" \ |
|
|||
203 | --resources contrib/packaging/macosx/ \ |
|
|||
204 | "$${OUTPUTDIR:-dist/}"/Mercurial-"$${HGVER}"-macosx"$${OSXVER}".pkg |
|
|||
205 |
|
56 | |||
206 | deb: |
|
57 | .PHONY: docker-debian-stretch | |
207 | contrib/packaging/builddeb |
|
58 | docker-debian-stretch: docker/debian-stretch | |
|
59 | ./dockerdeb debian stretch | |||
208 |
|
60 | |||
209 | ppa: |
|
61 | docker/ubuntu-%: docker/ubuntu.template | |
210 | contrib/packaging/builddeb --source-only |
|
|||
211 |
|
||||
212 | contrib/packaging/docker/debian-%: contrib/packaging/docker/debian.template |
|
|||
213 | sed "s/__CODENAME__/$*/" $< > $@ |
|
62 | sed "s/__CODENAME__/$*/" $< > $@ | |
214 |
|
63 | |||
215 | docker-debian-jessie: contrib/packaging/docker/debian-jessie |
|
64 | .PHONY: docker-ubuntu-trusty | |
216 | contrib/packaging/dockerdeb debian jessie |
|
65 | docker-ubuntu-trusty: docker/ubuntu-trusty | |
|
66 | ./dockerdeb ubuntu trusty | |||
217 |
|
67 | |||
218 | docker-debian-stretch: contrib/packaging/docker/debian-stretch |
|
68 | .PHONY: docker-ubuntu-trusty-ppa | |
219 | contrib/packaging/dockerdeb debian stretch |
|
69 | docker-ubuntu-trusty-ppa: docker/ubuntu-trusty | |
220 |
|
70 | ./dockerdeb ubuntu trusty --source-only | ||
221 | contrib/packaging/docker/ubuntu-%: contrib/packaging/docker/ubuntu.template |
|
|||
222 | sed "s/__CODENAME__/$*/" $< > $@ |
|
|||
223 |
|
71 | |||
224 | docker-ubuntu-trusty: contrib/packaging/docker/ubuntu-trusty |
|
72 | .PHONY: docker-ubuntu-xenial | |
225 | contrib/packaging/dockerdeb ubuntu trusty |
|
73 | docker-ubuntu-xenial: docker/ubuntu-xenial | |
|
74 | ./dockerdeb ubuntu xenial | |||
226 |
|
75 | |||
227 | docker-ubuntu-trusty-ppa: contrib/packaging/docker/ubuntu-trusty |
|
76 | .PHONY: docker-ubuntu-xenial-ppa | |
228 | contrib/packaging/dockerdeb ubuntu trusty --source-only |
|
77 | docker-ubuntu-xenial-ppa: docker/ubuntu-xenial | |
|
78 | ./dockerdeb ubuntu xenial --source-only | |||
229 |
|
79 | |||
230 | docker-ubuntu-xenial: contrib/packaging/docker/ubuntu-xenial |
|
80 | .PHONY: docker-ubuntu-artful | |
231 | contrib/packaging/dockerdeb ubuntu xenial |
|
81 | docker-ubuntu-artful: docker/ubuntu-artful | |
|
82 | ./dockerdeb ubuntu artful | |||
232 |
|
83 | |||
233 | docker-ubuntu-xenial-ppa: contrib/packaging/docker/ubuntu-xenial |
|
84 | .PHONY: docker-ubuntu-artful-ppa | |
234 | contrib/packaging/dockerdeb ubuntu xenial --source-only |
|
85 | docker-ubuntu-artful-ppa: docker/ubuntu-artful | |
|
86 | ./dockerdeb ubuntu artful --source-only | |||
235 |
|
87 | |||
236 | docker-ubuntu-artful: contrib/packaging/docker/ubuntu-artful |
|
88 | .PHONY: docker-ubuntu-bionic | |
237 | contrib/packaging/dockerdeb ubuntu artful |
|
89 | docker-ubuntu-bionic: docker/ubuntu-bionic | |
238 |
|
90 | ./dockerdeb ubuntu bionic | ||
239 | docker-ubuntu-artful-ppa: contrib/packaging/docker/ubuntu-artful |
|
|||
240 | contrib/packaging/dockerdeb ubuntu artful --source-only |
|
|||
241 |
|
91 | |||
242 | docker-ubuntu-bionic: contrib/packaging/docker/ubuntu-bionic |
|
92 | .PHONY: docker-ubuntu-bionic-ppa | |
243 | contrib/packaging/dockerdeb ubuntu bionic |
|
93 | docker-ubuntu-bionic-ppa: docker/ubuntu-bionic | |
|
94 | ./dockerdeb ubuntu bionic --source-only | |||
244 |
|
95 | |||
245 | docker-ubuntu-bionic-ppa: contrib/packaging/docker/ubuntu-bionic |
|
96 | .PHONY: fedora20 | |
246 | contrib/packaging/dockerdeb ubuntu bionic --source-only |
|
|||
247 |
|
||||
248 | fedora20: |
|
97 | fedora20: | |
249 | mkdir -p packages/fedora20 |
|
98 | mkdir -p $(HGROOT)/packages/fedora20 | |
250 | contrib/packaging/buildrpm |
|
99 | ./buildrpm | |
251 | cp rpmbuild/RPMS/*/* packages/fedora20 |
|
100 | cp $(HGROOT)/rpmbuild/RPMS/*/* $(HGROOT)/packages/fedora20 | |
252 | cp rpmbuild/SRPMS/* packages/fedora20 |
|
101 | cp $(HGROOT)/rpmbuild/SRPMS/* $(HGROOT)/packages/fedora20 | |
253 | rm -rf rpmbuild |
|
102 | rm -rf $(HGROOT)/rpmbuild | |
254 |
|
103 | |||
|
104 | .PHONY: docker-fedora20 | |||
255 | docker-fedora20: |
|
105 | docker-fedora20: | |
256 | mkdir -p packages/fedora20 |
|
106 | mkdir -p $(HGROOT)/packages/fedora20 | |
257 |
|
|
107 | ./dockerrpm fedora20 | |
258 |
|
108 | |||
|
109 | .PHONY: fedora21 | |||
259 | fedora21: |
|
110 | fedora21: | |
260 | mkdir -p packages/fedora21 |
|
111 | mkdir -p $(HGROOT)/packages/fedora21 | |
261 | contrib/packaging/buildrpm |
|
112 | ./buildrpm | |
262 | cp rpmbuild/RPMS/*/* packages/fedora21 |
|
113 | cp $(HGROOT)/rpmbuild/RPMS/*/* $(HGROOT)/packages/fedora21 | |
263 | cp rpmbuild/SRPMS/* packages/fedora21 |
|
114 | cp $(HGROOT)/rpmbuild/SRPMS/* $(HGROOT)/packages/fedora21 | |
264 | rm -rf rpmbuild |
|
115 | rm -rf $(HGROOT)/rpmbuild | |
265 |
|
116 | |||
|
117 | .PHONY: docker-fedora21 | |||
266 | docker-fedora21: |
|
118 | docker-fedora21: | |
267 | mkdir -p packages/fedora21 |
|
119 | mkdir -p $(HGROOT)packages/fedora21 | |
268 |
|
|
120 | ./dockerrpm fedora21 | |
269 |
|
121 | |||
|
122 | .PHONY: centos5 | |||
270 | centos5: |
|
123 | centos5: | |
271 | mkdir -p packages/centos5 |
|
124 | mkdir -p $(HGROOT)/packages/centos5 | |
272 |
|
|
125 | ./buildrpm --withpython | |
273 | cp rpmbuild/RPMS/*/* packages/centos5 |
|
126 | cp $(HGROOT)/rpmbuild/RPMS/*/* $(HGROOT)/packages/centos5 | |
274 | cp rpmbuild/SRPMS/* packages/centos5 |
|
127 | cp $(HGROOT)/rpmbuild/SRPMS/* $(HGROOT)/packages/centos5 | |
275 |
|
128 | |||
|
129 | .PHONY: docker-centos5 | |||
276 | docker-centos5: |
|
130 | docker-centos5: | |
277 | mkdir -p packages/centos5 |
|
131 | mkdir -p $(HGROOT)/packages/centos5 | |
278 |
|
|
132 | ./dockerrpm centos5 --withpython | |
279 |
|
133 | |||
|
134 | .PHONY: centos6 | |||
280 | centos6: |
|
135 | centos6: | |
281 | mkdir -p packages/centos6 |
|
136 | mkdir -p $(HGROOT)/packages/centos6 | |
282 |
|
|
137 | ./buildrpm --withpython | |
283 | cp rpmbuild/RPMS/*/* packages/centos6 |
|
138 | cp $(HGROOT)/rpmbuild/RPMS/*/* $(HGROOT)/packages/centos6 | |
284 | cp rpmbuild/SRPMS/* packages/centos6 |
|
139 | cp $(HGROOT)/rpmbuild/SRPMS/* $(HGROOT)/packages/centos6 | |
285 |
|
140 | |||
|
141 | .PHONY: docker-centos6 | |||
286 | docker-centos6: |
|
142 | docker-centos6: | |
287 | mkdir -p packages/centos6 |
|
143 | mkdir -p $(HGROOT)/packages/centos6 | |
288 |
|
|
144 | ./dockerrpm centos6 --withpython | |
289 |
|
145 | |||
|
146 | .PHONY: centos7 | |||
290 | centos7: |
|
147 | centos7: | |
291 | mkdir -p packages/centos7 |
|
148 | mkdir -p $(HGROOT)/packages/centos7 | |
292 | contrib/packaging/buildrpm |
|
149 | ./buildrpm | |
293 | cp rpmbuild/RPMS/*/* packages/centos7 |
|
150 | cp $(HGROOT)/rpmbuild/RPMS/*/* $(HGROOT)/packages/centos7 | |
294 | cp rpmbuild/SRPMS/* packages/centos7 |
|
151 | cp $(HGROOT)/rpmbuild/SRPMS/* $(HGROOT)/packages/centos7 | |
295 |
|
152 | |||
|
153 | .PHONY: docker-centos7 | |||
296 | docker-centos7: |
|
154 | docker-centos7: | |
297 | mkdir -p packages/centos7 |
|
155 | mkdir -p $(HGROOT)/packages/centos7 | |
298 |
|
|
156 | ./dockerrpm centos7 | |
299 |
|
157 | |||
|
158 | .PHONY: linux-wheels | |||
300 | linux-wheels: linux-wheels-x86_64 linux-wheels-i686 |
|
159 | linux-wheels: linux-wheels-x86_64 linux-wheels-i686 | |
301 |
|
160 | |||
|
161 | .PHONY: linux-wheels-x86_64 | |||
302 | linux-wheels-x86_64: |
|
162 | linux-wheels-x86_64: | |
303 | docker run -e "HGTEST_JOBS=$(shell nproc)" --rm -ti -v `pwd`:/src quay.io/pypa/manylinux1_x86_64 /src/contrib/packaging/build-linux-wheels.sh |
|
163 | docker run -e "HGTEST_JOBS=$(shell nproc)" --rm -ti -v `pwd`/../..:/src quay.io/pypa/manylinux1_x86_64 /src/contrib/packaging/build-linux-wheels.sh | |
304 |
|
||||
305 | linux-wheels-i686: |
|
|||
306 | docker run -e "HGTEST_JOBS=$(shell nproc)" --rm -ti -v `pwd`:/src quay.io/pypa/manylinux1_i686 linux32 /src/contrib/packaging/build-linux-wheels.sh |
|
|||
307 |
|
164 | |||
308 | .PHONY: help all local build doc cleanbutpackages clean install install-bin \ |
|
165 | .PHONY: linux-wheels-i686 | |
309 | install-doc install-home install-home-bin install-home-doc \ |
|
166 | linux-wheels-i686: | |
310 | dist dist-notests check tests check-code format-c update-pot \ |
|
167 | docker run -e "HGTEST_JOBS=$(shell nproc)" --rm -ti -v `pwd`/../..:/src quay.io/pypa/manylinux1_i686 linux32 /src/contrib/packaging/build-linux-wheels.sh | |
311 | osx deb ppa \ |
|
|||
312 | docker-debian-jessie \ |
|
|||
313 | docker-debian-stretch \ |
|
|||
314 | docker-ubuntu-trusty docker-ubuntu-trusty-ppa \ |
|
|||
315 | docker-ubuntu-xenial docker-ubuntu-xenial-ppa \ |
|
|||
316 | docker-ubuntu-artful docker-ubuntu-artful-ppa \ |
|
|||
317 | docker-ubuntu-bionic docker-ubuntu-bionic-ppa \ |
|
|||
318 | fedora20 docker-fedora20 \ |
|
|||
319 | fedora21 docker-fedora21 \ |
|
|||
320 | centos5 docker-centos5 \ |
|
|||
321 | centos6 docker-centos6 \ |
|
|||
322 | centos7 docker-centos7 \ |
|
|||
323 | linux-wheels |
|
General Comments 0
You need to be logged in to leave comments.
Login now