summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-25 17:07:14 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-25 17:07:14 +0200
commit403f228373e0d5f3dfb643d2bce4c7a2fe18eb25 (patch)
tree19ded6eb07ff536c37f6c388bf443b19fbb7a8d0
parent236700ecb93bff487499517433b02a33e25de40d (diff)
downloadmblaze-403f228373e0d5f3dfb643d2bce4c7a2fe18eb25.tar.gz
mblaze-403f228373e0d5f3dfb643d2bce4c7a2fe18eb25.tar.xz
mblaze-403f228373e0d5f3dfb643d2bce4c7a2fe18eb25.zip
add contrib/menter
-rwxr-xr-xcontrib/menter14
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/menter b/contrib/menter
new file mode 100755
index 0000000..f00a92e
--- /dev/null
+++ b/contrib/menter
@@ -0,0 +1,14 @@
+#!/bin/sh -e
+# menter [MSG] - run subshell in temporary directory with MSG extracted
+
+[ "$#" -eq 0 ] && set -- :
+
+dir=$(mktemp -d -t menter.XXXXXX)
+cd "$dir"
+mshow -t "$1"
+mshow -x "$1" 2>/dev/null
+ls -l
+ln -s "$(mseq "$1")" msg
+"${SHELL:-/bin/sh}" || true
+echo rm -r "$dir"
+rm -r "$dir"