[PATCH 4 of 7] setup: install some useful data files
Dan Villiom Podlaski Christiansen
danchr at gmail.com
Tue Dec 1 20:33:14 UTC 2009
# HG changeset patch
# User Dan Villiom Podlaski Christiansen <danchr at gmail.com>
# Date 1259614474 -3600
# Node ID 4a4fa19cd99df0cbe82de93c79ce312fb4e7eb6e
# Parent adebbf9035515d221bd62d934c064e830df0de80
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
@@ -309,7 +309,13 @@ for root in ('templates', 'help'):
f = os.path.join(dir, f)
package_data.setdefault('mercurial', []).append(f)
-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