Updated 'make install', removed xboxdrv-daemon man page

This commit is contained in:
Ingo Ruhnke 2011-03-06 13:42:52 +01:00
parent c7e280f9ae
commit 3a9a729e3f
6 changed files with 19 additions and 182 deletions

View file

@ -33,9 +33,9 @@ install: install-exec install-man
install-exec: xboxdrv
install -D xboxdrv "${DESTDIR}${BINDIR}/xboxdrv"
install -D xboxdrvctl "${DESTDIR}${BINDIR}/xboxdrvctl"
install-man:
install -D doc/xboxdrv-daemon.1 "${DESTDIR}${MANDIR}/man1/xboxdrv-daemon.1"
install -D doc/xboxdrv.1 "${DESTDIR}${MANDIR}/man1/xboxdrv.1"
.PHONY : clean install install-exec install-man

6
NEWS
View file

@ -1,3 +1,9 @@
xboxdrv 0.7.3 - (??/Mar/2011)
=============================
* added xboxdrvctl to control the daemon
xboxdrv 0.7.2 - (06/Mar/2011)
=============================

23
TODO
View file

@ -20,31 +20,28 @@ add libudev, libusb-1.0 to builddependencies
# Ubuntu 10.10
$ cd ../debian/
$ cd ../debian/xboxdrv
$ git checkout master
$ git-import-orig -u 0.7.2 ~/projects/xboxdrv/htdocs/xboxdrv-linux-0.7.2.tar.bz2
$ dch -v "0.7.2-1" "xboxdrv 0.7.2 release"
$ git-import-orig -u 0.7.3 ~/projects/xboxdrv/htdocs/xboxdrv-linux-0.7.3.tar.bz2
$ dch -v "0.7.3-1" "xboxdrv 0.7.3 release"
$ git-buildpackage --git-no-create-orig --git-tag --git-builder="debuild -S"
$ sudo pbuilder --build --basetgz /var/cache/pbuilder/base-maverick.tgz ../xboxdrv_0.7.2-1.dsc
$ dput my-ppa ../xboxdrv_0.7.2-1_source.changes
$ sudo pbuilder --build --basetgz /var/cache/pbuilder/base-maverick.tgz ../xboxdrv_0.7.3-1.dsc
$ dput my-ppa ../xboxdrv_0.7.3-1_source.changes
# Ubuntu 10.04 (LTS)
$ cd ../debian/
$ cd ../debian/xboxdrv
$ git checkout master-lts
$ git merge master
$ dch -b -v "0.7.2-1~lucid1" --distribution lucid "xboxdrv 0.7.2 backport"
$ dch -b -v "0.7.3-1~lucid1" --distribution lucid "xboxdrv 0.7.3 backport"
$ git-buildpackage --git-no-create-orig --git-debian-branch=master-lts --git-tag --git-builder="debuild -S"
$ sudo pbuilder --build --basetgz /var/cache/pbuilder/base-lucid.tgz ../xboxdrv_0.7.2-1~lucid1.dsc
$ dput my-ppa ../xboxdrv_0.7.2-1~lucid1_source.changes
$ sudo pbuilder --build --basetgz /var/cache/pbuilder/base-lucid.tgz ../xboxdrv_0.7.3-1~lucid1.dsc
$ dput my-ppa ../xboxdrv_0.7.3-1~lucid1_source.changes
Stuff to do before 0.7.2 release:
Stuff to do before 0.7.3 release:
=================================
== Generic ==
* add glib and dbus dependencies to .deb control file
== Unsolved/WontFix ==

View file

@ -1 +1 @@
0.7.2
0.7.3

View file

@ -1,10 +1,4 @@
all: xboxdrv-daemon.1 xboxdrv.1
xboxdrv-daemon.1: xboxdrv-daemon.xml Makefile
db2x_xsltproc --stylesheet man "$<" | db2x_manxml
xmlto xhtml -o xboxdrv-daemon.html -m config.xsl xboxdrv-daemon.xml
tidy -utf8 -indent -wrap 1000 -m xboxdrv-daemon.html/index.html
# docbook2x-texi "../build/doc/" "$<"
all: xboxdrv.1
xboxdrv.1: xboxdrv.xml Makefile
echo "<!ENTITY xboxdrv_version \"$$(cat ../VERSION)\">" > xboxdrv.ent

View file

@ -1,160 +0,0 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<refentry id="xboxdrv">
<refentryinfo>
<date>2010-05-13</date>
</refentryinfo>
<refmeta>
<refentrytitle>
<application>xboxdrv-daemon</application>
</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class="version">0.4.14</refmiscinfo>
<refmiscinfo class="author">0.4.14</refmiscinfo>
<refmiscinfo class="manual">User Commands</refmiscinfo>
<refmiscinfo class="source">xboxdrv-daemon</refmiscinfo>
</refmeta>
<refnamediv>
<refname>
<application>xboxdrv-daemon</application>
</refname>
<refpurpose>
A simple daemon that automatically launches xboxdrv when it detects a controller.
</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>xboxdrv</command>
<arg rep="repeat">OPTION</arg>
<arg choice="opt">--</arg>
<arg choice="req">XBOXDRV</arg>
<arg choice="opt" rep="repeat">ARGS</arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title>DESCRIPTION</title>
<variablelist>
<varlistentry>
<term><option>-h</option>, <option>--help</option></term>
<listitem>
<para>Display help text and exit.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>--version</option></term>
<listitem>
<para>
Print the version number and exit.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-v</option>, <option>--verbose</option></term>
<listitem>
<para>
Be verbose with printed output.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-a FILENAME, --attach=FILENAME</option></term>
<listitem>
<para>
Launch EXE when a new controller is connected
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-d FILENAME, --detach=FILENAME</option></term>
<listitem>
<para>
Launch EXE when a controller is detached
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-x FILENAME, --xboxdrv=FILENAME</option></term>
<listitem>
<para>
Set the location of the xboxdrv executable
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>Running xboxdrv via xboxdrv-daemon</title>
<para><command>xboxdrv-daemon</command> allows you to run xboxdrv
automatically whenever you plug in a gamepad. Since
xboxdrv-daemon.py needs to know where xboxdrv is located you need
to supply the location of the xboxdrv binary manually if its not
located in <envar>PATH</envar>:
</para>
<programlisting>% xboxdrv-daemon --xboxdrv ./xboxdrv</programlisting>
<para>You can pass arguments to xboxdrv after a double dash '--':</para>
<programlisting>% xboxdrv-daemon -- --buttonmap B=A,X=A,Y=A</programlisting>
<para>You can also run scripts that get started after xboxdrv is started
via:</para>
<programlisting><![CDATA[% xboxdrv-daemon \
--attach /home/juser/xboxdrv_attach \
--detach /home/juser/xboxdrv_deatach]]></programlisting>
<para>This is useful in Kiosk settings, such as a media center PC, where you
might want to restart the media center to have the controller working
properly after it got attached.</para>
<para>Note that you can't dynamically reconfigurabilty xboxdrv
when you launch it automatically via the daemon, so using this
daemon isn't generally recommend.</para>
<para>When you want configurability and automatic launching, it is recomment
that you write little startup scripts for your games, such as this:</para>
<programlisting><![CDATA[#!/bin/sh
# Start xboxdrv and remember its PID in the variable XBOXPID
xboxdrv --trigger-as-button -s &amp;
XBOXPID=$!
# Give xboxdrv a second to startup and create the device
sleep 1
# Launch your favorite game
your_favorite_game
# Kill xboxdrv and wait for it to finish
kill $XBOXPID
wait $XBOXPID
# EOF #]]></programlisting>
<para>That way you can individually configure every game and still not have
to worry about launching xboxdrv manually.</para>
</refsect1>
<refsect1>
<title>See also</title>
<para>
xboxdrv(1)
</para>
</refsect1>
</refentry>