comparison Makefile @ 24971:ab75baaf81d5

builddeb: new script for building a deb package Future work will allow us to use docker to build debs. Right now this doesn't install any config files. I plan to do that as a followup, but getting something basic and working checked in seems like more of a priority than getting everything done in one big step. This also does not create a source deb yet. I haven't looked into that process. Note that this declares incompatibility with the `mercurial-common` package. It's typical for debian packages to be split between architecture-independent bits and native bits, meaning the python bits downstream live in mercurial-common and the c extension bits live in mercurial. We don't do that because we want to (ideally) give users a single deb file to install.
author Augie Fackler <augie@google.com>
date Wed, 06 May 2015 13:13:54 -0400
parents 64e3f97bdf08
children 4c4d0012db4f
comparison
equal deleted inserted replaced
24970:33055069e465 24971:ab75baaf81d5
155 python contrib/fixpax.py dist/mercurial-*.mpkg/Contents/Packages/*.pkg/Contents/Archive.pax.gz 155 python contrib/fixpax.py dist/mercurial-*.mpkg/Contents/Packages/*.pkg/Contents/Archive.pax.gz
156 mkdir -p packages/osx 156 mkdir -p packages/osx
157 N=`cd dist && echo mercurial-*.mpkg | sed 's,\.mpkg$$,,'` && hdiutil create -srcfolder dist/$$N.mpkg/ -scrub -volname "$$N" -ov packages/osx/$$N.dmg 157 N=`cd dist && echo mercurial-*.mpkg | sed 's,\.mpkg$$,,'` && hdiutil create -srcfolder dist/$$N.mpkg/ -scrub -volname "$$N" -ov packages/osx/$$N.dmg
158 rm -rf dist/mercurial-*.mpkg 158 rm -rf dist/mercurial-*.mpkg
159 159
160 debian-jessie:
161 mkdir -p packages/debian-jessie
162 contrib/builddeb
163 mv debbuild/*.deb packages/debian-jessie
164 rm -rf debbuild
165
160 fedora20: 166 fedora20:
161 mkdir -p packages/fedora20 167 mkdir -p packages/fedora20
162 contrib/buildrpm 168 contrib/buildrpm
163 cp rpmbuild/RPMS/*/* packages/fedora20 169 cp rpmbuild/RPMS/*/* packages/fedora20
164 cp rpmbuild/SRPMS/* packages/fedora20 170 cp rpmbuild/SRPMS/* packages/fedora20