]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - hgrc.m4
hgrc: Generate with m4 to allow different paths to hgk.
[config/dotfiles.git] / hgrc.m4
diff --git a/hgrc b/hgrc.m4
similarity index 90%
rename from hgrc
rename to hgrc.m4
index fb4cff68e9b91095c1b03b733b5e12b16741fdb2..9fa589277d236bc36d1f85b0af8fdf6a97b1904a 100644 (file)
--- a/hgrc
+++ b/hgrc.m4
@@ -1,6 +1,9 @@
 # This is the Mercurial configuration file.
 
 
+dnl Load m4 macros.
+include(../lib.m4)
+
 [ui]
 username = Simon Ruderich <simon@ruderich.org>
 ignore = ~/.hgignore
@@ -31,7 +34,12 @@ hgext.transplant =
 
 # Necessary for hg view.
 [hgk]
+IF(OS, debian)
+path = /usr/share/mercurial/hgk
+FI
+IF(OS, darwin)
 path = /opt/local/share/mercurial/contrib/hgk
+FI
 
 [hooks]
 # Precommit hook which runs tests if they exist.
@@ -46,3 +54,5 @@ preoutgoing.mq-no-push = ! hg qtop > /dev/null 2>&1
 [pager]
 pager = colordiff | less
 ignore = record, qrecord
+
+# vim: ft=cfg