[PATCH 2 of 3] setup: install some useful data files

Dan Villiom Podlaski Christiansen danchr at gmail.com
Sat Aug 22 07:52:19 CDT 2009


# HG changeset patch
# User Dan Villiom Podlaski Christiansen <danchr at gmail.com>
# Date 1250709400 -7200
# Node ID a9d1eb0e14448f98804232f70e5cc25811923ec1
# Parent  1c05b1bbf7588f9805d5b0c931cdb698309ae840
setup: install some useful data files.

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


More information about the Mercurial-devel mailing list