summaryrefslogtreecommitdiff
path: root/local-pod-man
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-10-30 23:56:29 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-10-30 23:56:29 +0000
commitcb809d942c58dea5dfba6ad8b7e3298338ebb24e (patch)
treed4316c3289f8e8efdd746dfaf3a51ecd0544c5b5 /local-pod-man
parent14a6daa486a195f465c8049122d20675d6626f07 (diff)
parent6e7c6b8b8305f162cea9e3da85c24b3f21888a1a (diff)
Merge branch 'wip.tutorials' into wip
Diffstat (limited to 'local-pod-man')
-rwxr-xr-xlocal-pod-man13
1 files changed, 13 insertions, 0 deletions
diff --git a/local-pod-man b/local-pod-man
new file mode 100755
index 0000000..3c3e0ea
--- /dev/null
+++ b/local-pod-man
@@ -0,0 +1,13 @@
+#!/bin/bash
+set -e
+
+case "$#.$1" in
+1.[^-]*) ;;
+*) echo >&2 'usage: ./local-pod-man dgit-something[.7[.pod]]'; exit 16;;
+esac
+base="$1"
+base="${base%.pod}"
+base="${base%.7}"
+
+make "$base.7"
+man -l "$base.7"