.lib/stubs/scdoc

Wed, 28 Aug 2024 04:44:05 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 28 Aug 2024 04:44:05 -0500
changeset 1178
8993dc4128de
parent 1107
c6d7ac40bd3c
permissions
-rwxr-xr-x

add assign types gopls hint too

1006
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 #!/bin/sh
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 set -eu
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4 age_limit=180
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 install_it() {
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 local scratch="$(mktemp -d)"
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 trap 'rm -rf -- "$scratch"' EXIT
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9 git clone --depth=1 "https://git.sr.ht/~sircmpwn/scdoc" "$scratch"
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10 make -C "$scratch" install PREFIX="$HOME/.local"
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11 rm -rf -- "$scratch"
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12 asdf reshim || :
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
13 }
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
14
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
15 . ~/.lib/sh/stubexec.sh

mercurial