From 632f5b44f5149477462a9b59c832c59fe6eaa7ae Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 29 May 2006 12:59:10 +0000 Subject: drop the .sh suffix from esdcompat git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@986 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/Makefile.am | 8 ++-- src/daemon/esdcompat.in | 98 ++++++++++++++++++++++++++++++++++++++++++++++ src/daemon/esdcompat.sh.in | 98 ---------------------------------------------- 3 files changed, 102 insertions(+), 102 deletions(-) create mode 100755 src/daemon/esdcompat.in delete mode 100755 src/daemon/esdcompat.sh.in diff --git a/src/Makefile.am b/src/Makefile.am index 569b6561..ef9d825b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -77,7 +77,7 @@ EXTRA_DIST = \ daemon/daemon.conf.in \ daemon/default.pa.in \ depmod.py \ - daemon/esdcompat.sh.in \ + daemon/esdcompat.in \ utils/padsp \ modules/module-defs.h.m4 @@ -142,7 +142,7 @@ if HAVE_HOWL bin_PROGRAMS += pabrowse endif -bin_SCRIPTS = esdcompat.sh +bin_SCRIPTS = esdcompat pacat_SOURCES = utils/pacat.c pacat_LDADD = $(AM_LDADD) libpolyp.la @@ -1161,9 +1161,9 @@ suid: polypaudio chown root $< chmod u+s $< -CLEANFILES = esdcompat.sh client.conf default.pa daemon.conf +CLEANFILES = esdcompat client.conf default.pa daemon.conf -esdcompat.sh: daemon/esdcompat.sh.in Makefile +esdcompat: daemon/esdcompat.in Makefile sed -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \ -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \ -e 's,@POLYPAUDIO_BINARY\@,$(POLYPAUDIO_BINARY),g' < $< > $@ diff --git a/src/daemon/esdcompat.in b/src/daemon/esdcompat.in new file mode 100755 index 00000000..76023f52 --- /dev/null +++ b/src/daemon/esdcompat.in @@ -0,0 +1,98 @@ +#!/bin/sh + +# $Id$ +# +# This file is part of polypaudio. +# +# polypaudio is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# polypaudio is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with polypaudio; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. + +VERSION_STRING="@PACKAGE_NAME@ esd wrapper @PACKAGE_VERSION@" + +fail() { + echo "ERROR: $1" + exit 1 +} + +ARGS=" --log-target=syslog" + +for N in $(seq $#) ; do + + case "$1" in + "") + ;; + + -v|--version) + echo "$VERSION_STRING" + exit 0 + ;; + + -h|--help) + cat <