Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > PBX Shell Script Phase Help

PBX Shell Script Phase Help
Thread Tools
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Jul 22, 2003, 04:27 AM
 
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?
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Jul 22, 2003, 04:55 AM
 
OK - I changed the Shell Script Phase to a Legacy target, and it seems a *little* happier.

Also using /usr/bin/perl instead of /bin/sh
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:12 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2