bin/setup-hg-evolve

Wed, 16 Jun 2021 12:39:20 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 16 Jun 2021 12:39:20 -0500
changeset 912
a409a606c665
parent 892
ede01ab376a7
child 985
349ea9f736b9
permissions
-rwxr-xr-x

add autoinstall pg_format stub

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
892
ede01ab376a7 switch to py3/pip3
Meredith Howard <mhoward@roomag.org>
parents: 841
diff changeset
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
ede01ab376a7 switch to py3/pip3
Meredith Howard <mhoward@roomag.org>
parents: 841
diff changeset
6 python3 - --user
356
85890bd248ed add bin/setup-hg-evolve
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 fi
85890bd248ed add bin/setup-hg-evolve
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8
892
ede01ab376a7 switch to py3/pip3
Meredith Howard <mhoward@roomag.org>
parents: 841
diff changeset
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
f5eaa175beb4 enable topics
Meredith Howard <mhoward@roomag.org>
parents: 839
diff changeset
15 if ! grep -qsw topic ~/.hgext/hgrc; then
f5eaa175beb4 enable topics
Meredith Howard <mhoward@roomag.org>
parents: 839
diff changeset
16 printf '[extensions]\ntopic =\n' >> ~/.hgext/hgrc
f5eaa175beb4 enable topics
Meredith Howard <mhoward@roomag.org>
parents: 839
diff changeset
17 fi

mercurial