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