summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-01-05 13:38:03 +1000
committerHenrik Rydberg <rydberg@euromail.se>2011-01-05 10:39:25 +0100
commit6fc005d5e1120b376ec02b7f4a6c1554835749b2 (patch)
tree4dbc656fb127dff1840a95fb1e0973a5206e47cc
parent8a4c03414863cb58ca58b18fe590defe172c0ca3 (diff)
Add man-pages for the various evemu-tools.
Using asciidoc and xmlto, conditional on their availability at configure time. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
-rw-r--r--configure.ac11
-rw-r--r--tools/Makefile.am23
-rw-r--r--tools/evemu-describe.txt44
-rw-r--r--tools/evemu-device.txt38
4 files changed, 116 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1105932..f5b8980 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,6 +22,17 @@ AC_PROG_LIBTOOL
22AC_PROG_CC 22AC_PROG_CC
23AC_PROG_INSTALL 23AC_PROG_INSTALL
24 24
25# man page generation
26AC_ARG_VAR([XMLTO], [Path to xmlto command])
27AC_PATH_PROG([XMLTO], [xmlto])
28AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command])
29AC_PATH_PROG([ASCIIDOC], [asciidoc])
30AM_CONDITIONAL([HAVE_DOCTOOLS], [test "x$XMLTO" != "x" && test "x$ASCIIDOC" != "x"])
31if test "x$XMLTO" = "x" || test "x$ASCIIDOC" = "x"; then
32 AC_MSG_WARN([xmlto or asciidoc not found - cannot create man pages without it])
33fi
34
35
25AC_CONFIG_FILES([Makefile 36AC_CONFIG_FILES([Makefile
26 src/Makefile 37 src/Makefile
27 tools/Makefile 38 tools/Makefile
diff --git a/tools/Makefile.am b/tools/Makefile.am
index e845fb2..ca86c07 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -10,3 +10,26 @@ bin_PROGRAMS = \
10INCLUDES=-I$(top_srcdir)/include/ 10INCLUDES=-I$(top_srcdir)/include/
11 11
12AM_LDFLAGS = $(top_builddir)/src/libutouch-evemu.la 12AM_LDFLAGS = $(top_builddir)/src/libutouch-evemu.la
13
14
15# man page generation
16if HAVE_DOCTOOLS
17# actual man pages
18man_pages_sources = evemu-describe.txt evemu-device.txt
19# shadow man pages
20man_pages_shadows = evemu-record.1 evemu-play.1
21
22man_pages = $(man_pages_sources:.txt=.1) $(man_pages_shadows)
23
24SUFFIXES = .1 .txt .xml
25
26.xml.1:
27 @$(XMLTO) man $<
28
29.txt.xml:
30 @$(ASCIIDOC) -b docbook -d manpage -o $@ $<
31
32dist_man_MANS = $(man_pages)
33CLEANFILES = $(dist_man_MANS)
34MAINTAINERCLEANFILES = $(man_pages) *.xml
35endif
diff --git a/tools/evemu-describe.txt b/tools/evemu-describe.txt
new file mode 100644
index 0000000..8544169
--- /dev/null
+++ b/tools/evemu-describe.txt
@@ -0,0 +1,44 @@
1EVEMU-DESCRIBE(1)
2=================
3
4NAME
5----
6
7 evemu-describe, evemu-record - print information and events from an
8 input device
9
10SYNOPSIS
11--------
12 evemu-describe /dev/input/eventX
13
14 evemu-record /dev/input/eventX
15
16DESCRIPTION
17-----------
18evemu-describe gathers information about the input device and prints it to
19stdout. This information can be parsed by evemu-device(1) to create a
20virtual input device with the same properties.
21
22evemu-record captures events from the input device and prints them to
23stdout. The events can be parsed by evemu-play(1) to let a virtual input
24device created with evemu-device(1) emit the exact same event sequence.
25
26evemu-describe and evemu-record need to be able to read from the device; in
27most cases this means they must be run as root.
28
29DIAGNOSTICS
30-----------
31If evtest-record does not see any events even though the device is being
32used, the device may be grabbed by a process (EVIOCGRAB). This is usually
33the case when debugging a synaptics or wacom device from within X. VT
34switching to a TTY or shutting down the X server terminates this grab and
35the devices can be recorded.
36
37SEE ALSO
38--------
39evemu-device(1)
40evemu-play(1)
41
42AUTHOR
43------
44evemu was written by Henrik Rydberg <rydberg@euromail.se>
diff --git a/tools/evemu-device.txt b/tools/evemu-device.txt
new file mode 100644
index 0000000..05d1d30
--- /dev/null
+++ b/tools/evemu-device.txt
@@ -0,0 +1,38 @@
1EVEMU-DEVICE(1)
2===============
3
4NAME
5----
6
7 evemu-device, evemu-play - create a virtual input device and replay an
8 event sequence
9
10SYNOPSIS
11--------
12 evemu-device [description-file]
13
14 evemu-play /dev/input/eventX < event-sequence
15
16DESCRIPTION
17-----------
18evemu-device creates a virtual input device based on the description-file.
19This description is usually created by evemu-describe(1). evemu-device then
20creates a new input device with uinput and prints the name and the device
21file to
22stdout.
23
24evemu-play replays the event sequence given on stdin through the input
25device. The event sequence must be in the form created by evemu-record(1).
26
27evemu-device must be able to write to the uinput device node, and evemu-play
28must be able to write to the device node specified; in most cases this means
29it must be run as root.
30
31SEE ALSO
32--------
33evemu-describe(1)
34evemu-record(1)
35
36AUTHOR
37------
38evemu was written by Henrik Rydberg <rydberg@euromail.se>