[PATCH 4 of 6] setup: install some useful data files

Dan Villiom Podlaski Christiansen danchr at gmail.com
Thu Nov 26 13:48:05 CST 2009


# HG changeset patch
# User Dan Villiom Podlaski Christiansen <danchr at gmail.com>
# Date 1259264321 -3600
# Node ID 27a452aa1d0a9695b7d05a6e9601ac27626c4514
# Parent  3aeda8897d6e60a74a403bda66d29fc0c40f30d6
setup: install some useful data files.

The selection is somewhat arbitrary. In the case of the Zsh completion
file, it will not conflict with the builtin Zsh completions: they
are in a file named `_mercurial', not `_hg'.

diff --git a/contrib/bash_completion b/contrib/bash/hg
rename from contrib/bash_completion
rename to contrib/bash/hg
diff --git a/contrib/zsh_completion b/contrib/zsh/_hg
rename from contrib/zsh_completion
rename to contrib/zsh/_hg
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -310,7 +310,13 @@ if sys.platform == 'linux2' and os.uname
                                      ['hgext/inotify/linux/_inotify.c']))
         packages.extend(['hgext.inotify', 'hgext.inotify.linux'])
 
-datafiles = []
+datafiles = [
+    ('bash_completion.d', ['contrib/bash/hg']),
+    ('zsh/site-functions', ['contrib/zsh/_hg']),
+    ('mercurial/www', ['hgweb.cgi', 'hgwebdir.cgi',
+                       'contrib/hgwebdir.fcgi', 'contrib/hgwebdir.wsgi']),
+    ('mercurial/examples', ['contrib/sample.hgrc', 'contrib/mergetools.hgrc']),
+]
 
 setup(name='mercurial',
       version=version,


More information about the Mercurial-devel mailing list