diff 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
line wrap: on
line diff
--- a/Makefile	Wed May 06 14:36:17 2015 -0400
+++ b/Makefile	Wed May 06 13:13:54 2015 -0400
@@ -157,6 +157,12 @@
 	N=`cd dist && echo mercurial-*.mpkg | sed 's,\.mpkg$$,,'` && hdiutil create -srcfolder dist/$$N.mpkg/ -scrub -volname "$$N" -ov packages/osx/$$N.dmg
 	rm -rf dist/mercurial-*.mpkg
 
+debian-jessie:
+	mkdir -p packages/debian-jessie
+	contrib/builddeb
+	mv debbuild/*.deb packages/debian-jessie
+	rm -rf debbuild
+
 fedora20:
 	mkdir -p packages/fedora20
 	contrib/buildrpm