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