.lib/stubs/tectonic

Mon, 08 May 2023 02:42:51 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 08 May 2023 02:42:51 -0500
changeset 1113
9b4ca32ec390
parent 1112
0ae7864c4ad8
child 1119
84cd2286f0bf
permissions
-rwxr-xr-x

add setup-nix

1005
42fb34b64292 add tectonic stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 #!/bin/sh
42fb34b64292 add tectonic stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 set -eu
42fb34b64292 add tectonic stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3
42fb34b64292 add tectonic stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4 age_limit=30
1112
0ae7864c4ad8 add basic nix alternative for stubs
Meredith Howard <mhoward@roomag.org>
parents: 1107
diff changeset
5 nix_ref='nixpkgs#tectonic'
1005
42fb34b64292 add tectonic stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6
42fb34b64292 add tectonic stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 install_it() {
42fb34b64292 add tectonic stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 mkdir -p ~/.local/bin
42fb34b64292 add tectonic stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9 cd ~/.local/bin
42fb34b64292 add tectonic stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10 curl --proto '=https' --tlsv1.2 -fsSL https://drop-sh.fullyjustified.net |
42fb34b64292 add tectonic stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11 sh
42fb34b64292 add tectonic stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12 cd -
42fb34b64292 add tectonic stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
13 asdf reshim || :
42fb34b64292 add tectonic stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
14 }
42fb34b64292 add tectonic stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
15
42fb34b64292 add tectonic stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
16 . ~/.lib/sh/stubexec.sh

mercurial