Tue, 18 Jan 2022 17:21:10 -0600
fix brd/brf aliases
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 | 3 | |
892 | 4 | if ! (command -v pip3 && pip3 -V) &>/dev/null; then |
839
0beae3c33263
switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents:
591
diff
changeset
|
5 | curl -fsSL --compressed https://bootstrap.pypa.io/get-pip.py | |
892 | 6 | python3 - --user |
356 | 7 | fi |
8 | ||
892 | 9 | pip3 install --user --upgrade hg-evolve |
839
0beae3c33263
switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents:
591
diff
changeset
|
10 | |
0beae3c33263
switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents:
591
diff
changeset
|
11 | if ! grep -qsw evolve ~/.hgext/hgrc; then |
0beae3c33263
switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents:
591
diff
changeset
|
12 | printf '[extensions]\nevolve =\n' >> ~/.hgext/hgrc |
0beae3c33263
switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents:
591
diff
changeset
|
13 | fi |
0beae3c33263
switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents:
591
diff
changeset
|
14 | |
841 | 15 | if ! grep -qsw topic ~/.hgext/hgrc; then |
16 | printf '[extensions]\ntopic =\n' >> ~/.hgext/hgrc | |
17 | fi |