From fc97038015af1e86b5daa8880ee36d0fbfa9ed6b Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 3 Apr 2004 09:51:21 +0000 Subject: Simplify init script installation --- scripts/Makefile.am | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'scripts') diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 8c6e56d2..8e05086b 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -4,17 +4,10 @@ bin_SCRIPTS = bluepin -EXTRA_DIST = bluepin bluetooth.rc.rh bluetooth.rc.deb create_dev +EXTRA_DIST = bluepin bluetooth.rc.rh bluetooth.rc.deb create_dev -install-data-local: @DISTRO@ - -unknown: - -echo Unknown distribution - -redhat: - $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/rc.d/init.d - $(INSTALL) -m 755 $(srcdir)/bluetooth.rc.rh $(DESTDIR)$(sysconfdir)/rc.d/init.d/bluetooth - -debian: - $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/init.d - $(INSTALL) -m 755 $(srcdir)/bluetooth.rc.deb $(DESTDIR)$(sysconfdir)/init.d/bluetooth +install-data-local: + [ ! -f /etc/redhat-release -o ! -f /etc/mandrake-release ] || \ + $(INSTALL) -D -m 755 $(srcdir)/bluetooth.rc.rh $(DESTDIR)$(sysconfdir)/rc.d/init.d/bluetooth + [ ! -f /etc/debian_version ] || \ + $(INSTALL) -D -m 755 $(srcdir)/bluetooth.rc.deb $(DESTDIR)$(sysconfdir)/init.d/bluetooth -- cgit