add asciidoctor and timetrap stubs

Wed, 27 Dec 2023 01:39:00 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 27 Dec 2023 01:39:00 -0600
changeset 1137
f767f8cd6a9f
parent 1136
ace6b39b2ba7
child 1138
12ac68eb173f

add asciidoctor and timetrap stubs

.lib/stubs/asciidoctor file | annotate | diff | comparison | revisions
.lib/stubs/timetrap file | annotate | diff | comparison | revisions
new file mode 100755
--- /dev/null
+++ b/.lib/stubs/asciidoctor
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -eu
+
+install_it() {
+  [ -w "$(gem env gemdir)" ] ||
+    opt="--user-install"
+
+  gem install -q ${opt:-} asciidoctor
+  asdf reshim ruby || :
+}
+
+. ~/.lib/sh/stubexec.sh
new file mode 100755
--- /dev/null
+++ b/.lib/stubs/timetrap
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -eu
+
+install_it() {
+  [ -w "$(gem env gemdir)" ] ||
+    opt="--user-install"
+
+  gem install -q ${opt:-} timetrap
+  asdf reshim ruby || :
+}
+
+. ~/.lib/sh/stubexec.sh

mercurial