Hi,
I finally got stuck into working out how targets work in ProjBuilder.
I also saw this page:
http://www.eng.uwaterloo.ca/~ejones/software/mkdmg.html
which explains how to use a perl script to build the product into a Disc Image.
However - when I try and build the target, the script phase seems unhappy:
(I have '/bin/sh' as the shell and './mkdmg.pl $TARGET_NAME.dmg $TARGET_BUILD_DIR/*.app' as the other bit.)
I get the following log:
Code:
PhaseScriptExecution <Execution>/Users/diggory/TestDist2/build/TestDist2.build/TestDist2.build/BPTag004-script.sh
echo "=== Script ==="
cat /Users/diggory/TestDist2/build/TestDist2.build/TestDist2.build/BPTag004-script.sh
echo "--- Output ---"
/Users/diggory/TestDist2/build/TestDist2.build/TestDist2.build/BPTag004-script.sh
_result=$?
echo "=== Exit code: ${_result} ==="
exit ${_result}
=== Script ===
#!/bin/sh
./mkdmg.pl $TARGET_NAME.dmg $TARGET_BUILD_DIR/*.app
--- Output ---
/Users/diggory/TestDist2/build/TestDist2.build/TestDist2.build/BPTag004-script.sh: ./mkdmg.pl: /usr/bin/perl: bad interpreter: Permission denied
=== Exit code: 126 ===
...failed PhaseScriptExecution <Execution>/Users/diggory/TestDist2/build/TestDist2.build/TestDist2.build/BPTag004-script.sh ...
I read here:
http://archive.develooper.com/perlfa.../msg00183.html
that 'Permission Denied' means that the script needs to be executable - but my script is:
Code:
-rwxrwxrwx 1 diggory staff 10245 Jul 22 01:57 MkDMG2.pl
Can anyone help me?