# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 2015-09-22 18:14:05
# Node ID 346afebd8fa94ecc20fcb5db61e6cd83e9aed0be
# Parent  ccdc2b23fdb8ad1ba89e6c4ffbf05dbac22d426e

debian: install config files as part of mercurial-common

Future patches will start putting config files in /etc/mercurial/,
this just installs them.

diff --git a/contrib/debian/rules b/contrib/debian/rules
--- a/contrib/debian/rules
+++ b/contrib/debian/rules
@@ -27,4 +27,6 @@ override_dh_install:
 		-name '*.so' ! -type d -delete , \
 		-type d -empty -delete
 	cp contrib/hg-ssh $(CURDIR)/debian/mercurial-common/usr/bin
+	mkdir -p $(CURDIR)/debian/mercurial-common/etc/mercurial/hgrc.d/
+	cp contrib/debian/*.rc $(CURDIR)/debian/mercurial-common/etc/mercurial/hgrc.d/
 	rm $(CURDIR)/debian/mercurial-common/usr/bin/hg