bin/setup-hg-evolve

Mon, 26 Jun 2023 14:11:01 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 26 Jun 2023 14:11:01 -0500
changeset 1122
8a56361b077f
parent 985
349ea9f736b9
permissions
-rwxr-xr-x

Replace nvim_lsp_signature_help with lsp_signature.nvim

839
0beae3c33263 switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents: 591
diff changeset
1 #!/bin/bash
0beae3c33263 switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents: 591
diff changeset
2 set -eu -o pipefail
356
85890bd248ed add bin/setup-hg-evolve
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3
985
349ea9f736b9 try to use the same python as hg automatically
Meredith Howard <mhoward@roomag.org>
parents: 892
diff changeset
4 hg --version >/dev/null
349ea9f736b9 try to use the same python as hg automatically
Meredith Howard <mhoward@roomag.org>
parents: 892
diff changeset
5
349ea9f736b9 try to use the same python as hg automatically
Meredith Howard <mhoward@roomag.org>
parents: 892
diff changeset
6 shebang="$(head -n 1 $(which hg) | sed 's/^#!//')"
349ea9f736b9 try to use the same python as hg automatically
Meredith Howard <mhoward@roomag.org>
parents: 892
diff changeset
7
349ea9f736b9 try to use the same python as hg automatically
Meredith Howard <mhoward@roomag.org>
parents: 892
diff changeset
8 if ! ($shebang -m pip -V) &>/dev/null; then
839
0beae3c33263 switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents: 591
diff changeset
9 curl -fsSL --compressed https://bootstrap.pypa.io/get-pip.py |
985
349ea9f736b9 try to use the same python as hg automatically
Meredith Howard <mhoward@roomag.org>
parents: 892
diff changeset
10 $shebang - --user
356
85890bd248ed add bin/setup-hg-evolve
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11 fi
85890bd248ed add bin/setup-hg-evolve
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12
985
349ea9f736b9 try to use the same python as hg automatically
Meredith Howard <mhoward@roomag.org>
parents: 892
diff changeset
13 $shebang -m pip install --user --upgrade hg-evolve
839
0beae3c33263 switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents: 591
diff changeset
14
0beae3c33263 switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents: 591
diff changeset
15 if ! grep -qsw evolve ~/.hgext/hgrc; then
0beae3c33263 switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents: 591
diff changeset
16 printf '[extensions]\nevolve =\n' >> ~/.hgext/hgrc
0beae3c33263 switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents: 591
diff changeset
17 fi
0beae3c33263 switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents: 591
diff changeset
18
841
f5eaa175beb4 enable topics
Meredith Howard <mhoward@roomag.org>
parents: 839
diff changeset
19 if ! grep -qsw topic ~/.hgext/hgrc; then
f5eaa175beb4 enable topics
Meredith Howard <mhoward@roomag.org>
parents: 839
diff changeset
20 printf '[extensions]\ntopic =\n' >> ~/.hgext/hgrc
f5eaa175beb4 enable topics
Meredith Howard <mhoward@roomag.org>
parents: 839
diff changeset
21 fi

mercurial