]> git.alsa-project.org Git - alsa-oss.git/commitdiff
Added aoss script from James Tappin <james@xena.uklinux.net>.
authorJaroslav Kysela <perex@perex.cz>
Thu, 4 Oct 2001 07:59:54 +0000 (07:59 +0000)
committerJaroslav Kysela <perex@perex.cz>
Thu, 4 Oct 2001 07:59:54 +0000 (07:59 +0000)
Makefile.am
aoss.1 [new file with mode: 0644]
aoss.in [new file with mode: 0644]

index 7ec0fe5d359e20ae3dcaa963ce892e4bd7d09d12..8c2e96f778cc06dcab84ca32018a2453716d0447 100644 (file)
@@ -1,8 +1,16 @@
 lib_LTLIBRARIES = libaoss.la
+bin_SCRIPTS = aoss
+man_MANS = aoss.1
 
 libaoss_la_SOURCES = alsa-oss.c
 libaoss_la_LIBADD = -ldl -lasound
 
+aoss: aoss.in
+       sed -e "s+PREFIX+$(libdir)+" $(srcdir)/aoss.in > aoss
+
+clean:
+       rm -f aoss
+
 dist-hook:
        echo $(VERSION) >> version
        -chmod -R a+r $(distdir)
diff --git a/aoss.1 b/aoss.1
new file mode 100644 (file)
index 0000000..c56168b
--- /dev/null
+++ b/aoss.1
@@ -0,0 +1,28 @@
+.TH AOSS 1 "3 October 2001"
+.SH NAME
+aoss \- Wrapper script to facilitate use of the ALSA OSS compatibility
+library.
+.SH SYNOPSYS
+\fBaoss\fP \fIosscommand\fP [arguments]
+
+.SH DESCRIPTION
+\fBaoss\fP is a simple wrapper script which facilitates the use of the
+ALSA OSS compatibility library. It just sets the appropriate LD_PRELOAD
+path and then runs the command.
+
+This is useful in cases where routing settings (which can be made in
+your .asoundrc file) need to be applied to commands that use the OSS
+API.
+
+.SS Arguments
+.TP
+\fIosscommand\fP
+A command that uses the OSS API
+.TP
+\fIarguments\fP
+The appropriate arguments and options for the OSS command.
+.TP
+
+.SH AUTHORS
+The OSS compatibility library is by Abramo Bagnara <abramo@alsa-project.org>
+The aoss script and this document are by James Tappin <james@xena.uklinux.net>
diff --git a/aoss.in b/aoss.in
new file mode 100644 (file)
index 0000000..9ffe776
--- /dev/null
+++ b/aoss.in
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# A simple script to facilitate the use of the OSS compatibility library.
+# Usage:
+#      aoss <command> <command options and arguments>
+
+LD_PRELOAD=PREFIX/libaoss.so $*