Patchwork D882: deb: install zsh completions to /usr/share/zsh/vendor-completions

login
register
mail settings
Submitter phabricator
Date Oct. 1, 2017, 2:04 p.m.
Message ID <7e577537b75d2120c2015f83374d448a@localhost.localdomain>
Download mbox | patch
Permalink /patch/24353/
State Not Applicable
Headers show

Comments

phabricator - Oct. 1, 2017, 2:04 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9ecc622ca23f: deb: install zsh completions to /usr/share/zsh/vendor-completions (authored by spectral, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D882?vs=2280&id=2290

REVISION DETAIL
  https://phab.mercurial-scm.org/D882

AFFECTED FILES
  contrib/debian/rules
  tests/test-debian-packages.t

CHANGE DETAILS




To: spectral, #hg-reviewers, simpkins
Cc: mercurial-devel

Patch

diff --git a/tests/test-debian-packages.t b/tests/test-debian-packages.t
--- a/tests/test-debian-packages.t
+++ b/tests/test-debian-packages.t
@@ -21,3 +21,6 @@ 
 mercurial-common should have py but no .so or pyc
   $ dpkg --contents mercurial-common_*.deb | egrep '(localrepo|parsers.*so)'
   * ./usr/lib/python2.7/dist-packages/mercurial/localrepo.py (glob)
+zsh completions should be in the common package
+  $ dpkg --contents mercurial-common_*.deb | egrep 'zsh.*[^/]$'
+  * ./usr/share/zsh/vendor-completions/_hg (glob)
diff --git a/contrib/debian/rules b/contrib/debian/rules
--- a/contrib/debian/rules
+++ b/contrib/debian/rules
@@ -33,4 +33,6 @@ 
 	cp contrib/debian/*.rc $(CURDIR)/debian/mercurial-common/etc/mercurial/hgrc.d/
 	mkdir -p $(CURDIR)/debian/mercurial-common/usr/share/bash-completion/completions
 	cp contrib/bash_completion $(CURDIR)/debian/mercurial-common/usr/share/bash-completion/completions/hg
+	mkdir -p $(CURDIR)/debian/mercurial-common/usr/share/zsh/vendor-completions
+	cp contrib/zsh_completion $(CURDIR)/debian/mercurial-common/usr/share/zsh/vendor-completions/_hg
 	rm $(CURDIR)/debian/mercurial-common/usr/bin/hg