aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-16 19:49:35 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-16 19:49:35 +1200
commit6cbb1755813b9fd3ad016aafc202a36eda37718a (patch)
treed7d985980ef5fa78572f13b867d6b0bdfd9f3a24 /include
parentApply suffix rules for games/bin building (diff)
downloaddotfiles-6cbb1755813b9fd3ad016aafc202a36eda37718a.tar.gz
dotfiles-6cbb1755813b9fd3ad016aafc202a36eda37718a.zip
Reverse .m4 translation for binscripts
Either this is overengineering, or I don't understand m4 well enough.
Diffstat (limited to 'include')
-rw-r--r--include/mktd.trap.sh15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/mktd.trap.sh b/include/mktd.trap.sh
deleted file mode 100644
index 388eb9be..00000000
--- a/include/mktd.trap.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-# Create a temporary directory with name in $td, and handle POSIX-ish traps to
-# remove it when the script exits.
-td=
-cleanup() {
- [ -n "$td" ] && rm -fr -- "$td"
- if [ "$1" != EXIT ] ; then
- trap - "$1"
- kill "-$1" "$$"
- fi
-}
-for sig in EXIT HUP INT TERM ; do
- # shellcheck disable=SC2064
- trap "cleanup $sig" "$sig"
-done
-td=$(mktd "$self") || exit