aboutsummaryrefslogtreecommitdiff
path: root/aux/lib.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-04-14 09:33:56 -0300
committerEuAndreh <eu@euandre.org>2023-04-14 09:33:56 -0300
commite90d6bc34fdf8f590c92ffecacfc90cc3885611e (patch)
tree4c24dc9c4fdf72ed087c9e3e311479d13d9a667e /aux/lib.sh
parentTODOs.md: Add #task-1554614f-2e33-616d-d021-70828dbf0381 (diff)
downloadgistatic-e90d6bc34fdf8f590c92ffecacfc90cc3885611e.tar.gz
gistatic-e90d6bc34fdf8f590c92ffecacfc90cc3885611e.tar.xz
rm -rf aux/
Diffstat (limited to 'aux/lib.sh')
-rwxr-xr-xaux/lib.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/aux/lib.sh b/aux/lib.sh
deleted file mode 100755
index d64409a..0000000
--- a/aux/lib.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-#
-# Generally, utilities that I expected to exist in POSIX, but don't.
-#
-
-uuid() {
- # Taken from:
- # https://serverfault.com/a/799198
- od -xN20 /dev/urandom |
- head -1 |
- awk '{OFS="-"; print $2$3,$4,$5,$6,$7$8$9}'
-}
-
-tmpname() {
- echo 'mkstemp(template)' | m4 -D template="${TMPDIR:-/tmp}/m4-tmpname."
-}
-
-mkstemp() {
- name="$(tmpname)"
- touch "$name"
- echo "$name"
-}
-
-mkdtemp() {
- name="$(tmpname)"
- rm -f "$name"
- mkdir "$name"
- echo "$name"
-}