From 187dc04499b654f56da1f9534d6b58205ba5a6c3 Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Thu, 27 Mar 2014 14:50:37 +0100 Subject: [PATCH] Fix copy command for unix platforms when parent folder does not exist --- src/blacksound/blacksound.pro | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/blacksound/blacksound.pro b/src/blacksound/blacksound.pro index d3908894e..126275e44 100644 --- a/src/blacksound/blacksound.pro +++ b/src/blacksound/blacksound.pro @@ -30,7 +30,14 @@ RESOURCES += win32:isEmpty(MINGW_IN_SHELL): COPY = xcopy /yi else: COPY = cp -r -QMAKE_POST_LINK += $$COPY $$shell_path($$PWD/sounds) \ +win32 { + QMAKE_POST_LINK += $$COPY $$shell_path($$PWD/sounds) \ $$shell_path($$OUT_PWD/../../bin/sounds) +} +else { + QMAKE_POST_LINK += mkdir -p $$shell_path($$OUT_PWD/../../bin) && \ + $$COPY $$shell_path($$PWD/sounds) \ + $$shell_path($$OUT_PWD/../../bin) +} include (../../libraries.pri)