summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore4
-rw-r--r--Makefile9
-rw-r--r--check-kernel.in2
-rw-r--r--man.commons.in27
4 files changed, 39 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 9e1d00b..31f83a4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
-*.1
check-kernel
+man.commons
+*.common
+*.1
diff --git a/Makefile b/Makefile
index 83a64e4..a30b8e7 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ MANDIR = /usr/share/man
VERSION = 0.0
-all: check-kernel
+all: man.commons check-kernel check-kernel.1
%: %.in
sed " \
@@ -37,10 +37,17 @@ all: check-kernel
" $< > $@
[ "$@" = "check-kernel" ] && chmod +x "$@" || true
+%.1: % man.commons
+ grep -v "^$<(" man.commons | sed '/^\[SEE ALSO]$$/{n;:a;N;/\[/b;s/\n/, /;ta;}' > "$<.common" && \
+ help2man \
+ -n 'Check if the installed kernel is currently running' \
+ -o "$@" -N --include $<.common --no-discard-stderr "./$<"
+
.PHONY: install dist clean
install: all
install -D -m0755 check-kernel $(DESTDIR)$(BINDIR)/check-kernel
+ install -D -m0644 check-kernel.1 $(DESTDIR)$(MANDIR)/man1/check-kernel.1
clean:
ls -A | \
diff --git a/check-kernel.in b/check-kernel.in
index 1113b75..b5318fe 100644
--- a/check-kernel.in
+++ b/check-kernel.in
@@ -5,7 +5,7 @@
verwendung() {
>&2 echo 'check-kernel checks if the installed kernel is currently running'
>&2 echo ''
- >&2 echo 'Usage: sendmailadvanced [OPTIONS]'
+ >&2 echo 'Usage: check-kernel [OPTIONS]'
>&2 echo ' -r,--reboot reboot system if installed kernel is not yet running'
>&2 echo \
'#HELPTEXT# #'
diff --git a/man.commons.in b/man.commons.in
new file mode 100644
index 0000000..275ddb7
--- /dev/null
+++ b/man.commons.in
@@ -0,0 +1,27 @@
+[CONFIGURATION]
+The configfile \fB#ETCDIR#/sendmailadvanced.conf\fP is a bash script, which defines the following variables and routines:
+.TP
+.B "gpg_recipient"
+default recipient to encrypt to
+.TP
+.B "hashcash_bits"
+stamp value
+.TP
+.B "body_header_hook"
+routine printing things to put into head of (body of) email.
+Parameter \fB$1\fP was given on the console via \fB--hook $1\fP.
+.TP
+.B "body_footer_hook"
+routine printing things to put into foot of email.
+Parameter \fB$1\fP was given on the console via \fB--hook $1\fP.
+[FILES]
+.TP
+.B "#BINDIR#/sendmailadvanced"
+program file
+.TP
+.B "#ETCDIR#/sendmailadvanced.conf"
+contains configuration
+[AUTHOR]
+.nf
+Erich Eckner <opensource at eckner dot net>
+.fi