From 0b482314f87281db1f9fba028b028e1542ccf463 Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Wed, 9 Feb 2011 10:25:53 -0300 Subject: mpd: fix mpd.conf installation check If target /etc/mpd.conf exists the evaluation will be fail thus breaking the build process. Fix it. Signed-off-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- package/multimedia/mpd/mpd.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package/multimedia/mpd/mpd.mk b/package/multimedia/mpd/mpd.mk index 971ad6767..61b107b38 100644 --- a/package/multimedia/mpd/mpd.mk +++ b/package/multimedia/mpd/mpd.mk @@ -96,9 +96,10 @@ MPD_CONF_OPT += --disable-wavpack endif define MPD_INSTALL_EXTRA_FILES - [ ! -f $(TARGET_DIR)/etc/mpd.conf ] && \ + @if [ ! -f $(TARGET_DIR)/etc/mpd.conf ]; then \ $(INSTALL) -D package/multimedia/mpd/mpd.conf \ - $(TARGET_DIR)/etc/mpd.conf + $(TARGET_DIR)/etc/mpd.conf; \ + fi $(INSTALL) -m 0755 -D package/multimedia/mpd/S95mpd \ $(TARGET_DIR)/etc/init.d/S95mpd endef -- cgit v1.2.3