mpd: fix mpd.conf installation check
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Wed, 9 Feb 2011 13:25:53 +0000 (10:25 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 9 Feb 2011 21:50:25 +0000 (22:50 +0100)
If target /etc/mpd.conf exists the evaluation will be fail thus breaking
the build process. Fix it.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/multimedia/mpd/mpd.mk

index 971ad6767f19905bd7913ccc0c65e67089cbc543..61b107b389d371ae76863f90afd3985b91608f81 100644 (file)
@@ -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