comparison contrib/packaging/debian/rules @ 46844:2fd5e0054dd9

deb: avoid use of [[ in 'rules' file It's not supported by posix shell, and apparently my build system uses that. Differential Revision: https://phab.mercurial-scm.org/D10292
author Kyle Lippincott <spectral@google.com>
date Tue, 30 Mar 2021 15:54:36 -0700
parents 90481550467c
children 8d7eaff92f9c
comparison
equal deleted inserted replaced
46843:728d89f6f9b1 46844:2fd5e0054dd9
94 # completions 94 # completions
95 mkdir -p "$(CURDIR)"/debian/mercurial/usr/share/bash-completion/completions 95 mkdir -p "$(CURDIR)"/debian/mercurial/usr/share/bash-completion/completions
96 cp contrib/bash_completion "$(CURDIR)"/debian/mercurial/usr/share/bash-completion/completions/hg 96 cp contrib/bash_completion "$(CURDIR)"/debian/mercurial/usr/share/bash-completion/completions/hg
97 mkdir -p "$(CURDIR)"/debian/mercurial/usr/share/zsh/vendor-completions 97 mkdir -p "$(CURDIR)"/debian/mercurial/usr/share/zsh/vendor-completions
98 cp contrib/zsh_completion "$(CURDIR)"/debian/mercurial/usr/share/zsh/vendor-completions/_hg 98 cp contrib/zsh_completion "$(CURDIR)"/debian/mercurial/usr/share/zsh/vendor-completions/_hg
99 if [[ "$(DEB_HG_CHG_BY_DEFAULT)" -eq 1 ]]; then \ 99 if [ "$(DEB_HG_CHG_BY_DEFAULT)" -eq 1 ]; then \
100 mkdir -p "$(CURDIR)"/debian/mercurial/usr/lib/mercurial; \ 100 mkdir -p "$(CURDIR)"/debian/mercurial/usr/lib/mercurial; \
101 mv "$(CURDIR)"/debian/mercurial/usr/bin/hg "$(CURDIR)"/debian/mercurial/usr/lib/mercurial/hg; \ 101 mv "$(CURDIR)"/debian/mercurial/usr/bin/hg "$(CURDIR)"/debian/mercurial/usr/lib/mercurial/hg; \
102 ln -s chg "$(CURDIR)"/debian/mercurial/usr/bin/hg; \ 102 ln -s chg "$(CURDIR)"/debian/mercurial/usr/bin/hg; \
103 fi 103 fi