]> ruderich.org/simon Gitweb - wall-notify/wall-notify.git/commitdiff
add man page
authorSimon Ruderich <simon@ruderich.org>
Sat, 17 May 2014 21:02:50 +0000 (23:02 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 17 May 2014 21:03:37 +0000 (23:03 +0200)
.gitignore
Makefile.am
configure.ac
man/Makefile.am [new file with mode: 0644]
man/man.conf [new file with mode: 0644]
man/wall-notify.txt [new file with mode: 0644]

index 562b70bfbd7e1af1091e489f3b7c923a7b2d7a1e..caf945d2b1790abf248e5344a297d95ffe6c37da 100644 (file)
@@ -9,6 +9,9 @@
 /config.log
 /config.status
 /configure
+/man/Makefile
+/man/Makefile.in
+/man/wall-notify.1
 /src/.deps/
 /src/Makefile
 /src/Makefile.in
index 26226b0a29dc34a6ddb2c618ba127587bbfa1567..4947109ddd320cc192680ce61cc65e1570b0cd7e 100644 (file)
@@ -1,3 +1,3 @@
-SUBDIRS = src
+SUBDIRS = src man
 
 ACLOCAL_AMFLAGS = -I m4
index 9f1efc3a1e4ba30cbe52b7797054c5fddd787b48..f7380b89c355d9945f93ece952b55d0603a5c83d 100644 (file)
@@ -80,7 +80,7 @@ if test -z "$disable_x11_support"; then
     CFLAGS="$X_CFLAGS $CFLAGS"
 fi
 
-AC_CONFIG_FILES([Makefile src/Makefile])
+AC_CONFIG_FILES([Makefile src/Makefile man/Makefile])
 AC_OUTPUT
 
 if test "x$ac_cv_header_utempter_h" != xyes; then
diff --git a/man/Makefile.am b/man/Makefile.am
new file mode 100644 (file)
index 0000000..03d409f
--- /dev/null
@@ -0,0 +1,17 @@
+dist_man1_MANS = wall-notify.1
+dist_noinst_DATA = wall-notify.txt
+
+DISTCLEANFILES = $(dist_man1_MANS)
+
+
+ASCIIDOC = asciidoc
+XMLTO = xmlto
+
+A2XML = $(ASCIIDOC) --backend=docbook --doctype=manpage \
+                    --conf-file=$(srcdir)/man.conf
+XML2MAN = $(XMLTO) man
+
+.txt.1:
+       $(A2XML) -o $@.xml $<
+       $(XML2MAN) $@.xml
+       rm $@.xml
diff --git a/man/man.conf b/man/man.conf
new file mode 100644 (file)
index 0000000..a6d5079
--- /dev/null
@@ -0,0 +1,10 @@
+# Macro to display links to other man pages. Inspired by Git's linkgit:[]
+# macro.
+[macros]
+(?su)[\\]?(?P<name>manlink):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
+
+[manlink-inlinemacro]
+<citerefentry>
+    <refentrytitle>{target}</refentrytitle>
+    <manvolnum>{0}</manvolnum>
+</citerefentry>
diff --git a/man/wall-notify.txt b/man/wall-notify.txt
new file mode 100644 (file)
index 0000000..e059204
--- /dev/null
@@ -0,0 +1,57 @@
+wall-notify(1)
+==============
+
+NAME
+----
+
+wall-notify - receive wall messages and pass them to a notification program
+
+
+SYNOPSIS
+--------
+
+*wall-notify* ['-X'] ['-m'] 'cmd' ['args']..
+
+
+DESCRIPTION
+-----------
+
+*wall-notify* receives *wall* messages and passes them to the notification
+program 'cmd' and its arguments via stdin. For each received message a new
+instance of 'cmd' is created.
+
+
+OPTIONS
+-------
+
+*-X*::
+    Quit when the current X session terminates. By default *wall-notify* keeps
+    running. This option is intended for `~/.xinitrc` to prevent stale
+    *wall-notify* processes when the user logs out. Requires a running X
+    server.
+
+*-m*::
+    Receive messages from all users. Works similar to *mesg y*. By default
+    only messages from root are allowed. Be careful when using this option, it
+    might be abused by local users to send fake messages.
+
+
+AUTHORS
+-------
+
+Written by Simon Ruderich <simon@ruderich.org>.
+
+
+COPYRIGHT
+---------
+
+Copyright \(C) 2014  Simon Ruderich. Free software licensed under GPL version
+3 or later.
+
+
+SEE ALSO
+--------
+
+manlink:wall[1], manlink:utmp[5], manlink:shtudown[1]
+
+// vim: ft=asciidoc