Hi all,

I successfully build and deploy an app bundle on OS X with a name all letters and possibly spaces.

Now if I try to include parentheses in the app name like
Qt Code:
  1. TARGET = x(y)z
To copy to clipboard, switch view to plain text mode 
the build fails with
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `test -d ../../bin/x(y)z.app/Contents || mkdir -p ../../bin/x(y)z.app/Contents'
make[2]: *** [../../bin/x(y)z.app/Contents/PkgInfo] Error 2
make[1]: *** [sub-app-make_first-ordered] Error 2
make: *** [sub-src-make_first] Error 2
17:15:02: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project ribmetender (kit: Desktop Qt 5.3 clang 32bit)
When executing step 'Make'
Ok, mkdir in bash needs parentheses escaped or quoted, too. I tried these:
Qt Code:
  1. TARGET = x\(y\)z #same
  2. TARGET = "x(y)z" #same
  3. TARGET = "x\(y\)z" #same
  4. TARGET = "x\\\(y\\\)z" #almost same: /bin/sh: -c: line 0: `test -d ../../bin/x/(y/)z.app/Contents || mkdir -p ../../bin/x/(y/)z.app/Contents'
  5. TARGET = $$quote(x(y)z) #builds, Frameworks/ and PlugIns/ missing inside bundle, *but* MacOS/x(y)z is there!
  6. TARGET = $$shell_quote(x(y)z) #same
  7. TARGET = $$system_quote(x(y)z) #same
To copy to clipboard, switch view to plain text mode 

If I build the bundle to a TARGET without parentheses, then rename the executable afterwards by hand, the app runs just as well as before.

Any ideas how to automate this with qmake?