Sat, 26 Sep 2020 15:32:52 -0500
move polyglot_disabled earlier
839
0beae3c33263
switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents:
592
diff
changeset
|
1 | #!/bin/bash |
0beae3c33263
switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents:
592
diff
changeset
|
2 | set -eu -o pipefail |
592 | 3 | |
839
0beae3c33263
switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents:
592
diff
changeset
|
4 | if ! (command -v pip2 && pip2 -V) &>/dev/null; then |
0beae3c33263
switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents:
592
diff
changeset
|
5 | curl -fsSL --compressed https://bootstrap.pypa.io/get-pip.py | |
0beae3c33263
switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents:
592
diff
changeset
|
6 | python2 - --user |
592 | 7 | fi |
8 | ||
839
0beae3c33263
switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents:
592
diff
changeset
|
9 | pip2 install --user --upgrade hg-git |
0beae3c33263
switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents:
592
diff
changeset
|
10 | |
0beae3c33263
switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents:
592
diff
changeset
|
11 | if ! grep -qsw hggit ~/.hgext/hgrc; then |
0beae3c33263
switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents:
592
diff
changeset
|
12 | printf '[extensions]\nhggit =\n' >> ~/.hgext/hgrc |
0beae3c33263
switch to pip-based install
Meredith Howard <mhoward@roomag.org>
parents:
592
diff
changeset
|
13 | fi |