bin/setup-hg-evolve

Sun, 01 Oct 2017 16:40:58 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 01 Oct 2017 16:40:58 -0400
changeset 651
4a0d4c07b49e
parent 591
2ee456c483b0
child 839
0beae3c33263
permissions
-rwxr-xr-x

use perltidy for equalprg if present

356
85890bd248ed add bin/setup-hg-evolve
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 #!/bin/sh
85890bd248ed add bin/setup-hg-evolve
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 set -eu
85890bd248ed add bin/setup-hg-evolve
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3
85890bd248ed add bin/setup-hg-evolve
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4 if [ -d ~/.hgext/evolve ]; then
85890bd248ed add bin/setup-hg-evolve
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5 hg -R ~/.hgext/evolve fetch
85890bd248ed add bin/setup-hg-evolve
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 else
85890bd248ed add bin/setup-hg-evolve
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 hg clone https://www.mercurial-scm.org/repo/evolve ~/.hgext/evolve
591
2ee456c483b0 switch to a file just for extra extensions via script
Meredith Howard <mhoward@roomag.org>
parents: 356
diff changeset
8
2ee456c483b0 switch to a file just for extra extensions via script
Meredith Howard <mhoward@roomag.org>
parents: 356
diff changeset
9 [ -f ~/.hgext/hgrc ] || echo '[extensions]' > ~/.hgext/hgrc
2ee456c483b0 switch to a file just for extra extensions via script
Meredith Howard <mhoward@roomag.org>
parents: 356
diff changeset
10 echo 'evolve = ~/.hgext/evolve/hgext3rd/evolve' >> ~/.hgext/hgrc
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

mercurial