Re: Can't pipe files to compileHelp
Re: Can't pipe files to compileHelp
- Subject: Re: Can't pipe files to compileHelp
- From: Bill Cheeseman <email@hidden>
- Date: Sun, 04 Aug 2002 11:43:23 -0400
on 02-08-04 10:00 AM, Bill Cheeseman at email@hidden wrote:
>
This command is the one that actually does what I need:
>
>
compileHelp -o Help.plist *Help.rtf *Help.rtfd
It works in Terminal, anyway.
But I'm still stumped, because I can't make it work in a script build phase
in my project. I've been all through the documentation, archives, man pages,
etc. Can somebody tell me what the problem is?
I put a file named "preprocessing.sh" in my project folder's root level,
with these contents:
cd "$SRCROOT/English.lproj"
compileHelp -o Help.plist *Help.rtf *Help.rtfd
I add a script build phase at the beginning with the shell set to /bin/sh
and the script set to ./preprocessing.sh. The English.lproj folder contains
a couple of files ending in "Help.rtf". I am the owner of every folder and
file in the project folder with read/write permission, and I am
Administrator.
When I build, I get a "Permission denied" error with this error message from
Project Builder in Mac OS X 10.2 (Jaguar 6C106) and a nearly identical error
in 10.1.5:
PhaseScriptExecution <Execution>/Users/cheeseb/Documents/Vermont Recipes 20
10.2/build/Vermont Recipes.build/Vermont Recipes.build/BPTag000-script.sh
=== Script ===
#!/bin/sh
./preprocessing.sh
--- Output ---
/Users/cheeseb/Documents/Vermont Recipes 20 10.2/build/Vermont
Recipes.build/Vermont Recipes.build/BPTag000-script.sh: ./preprocessing.sh:
Permission denied
=== Exit code: 126 ===
echo "=== Script ==="
cat "/Users/cheeseb/Documents/Vermont Recipes 20 10.2/build/Vermont
Recipes.build/Vermont Recipes.build/BPTag000-script.sh"
echo "--- Output ---"
"/Users/cheeseb/Documents/Vermont Recipes 20 10.2/build/Vermont
Recipes.build/Vermont Recipes.build/BPTag000-script.sh"
_result=$?
echo "=== Exit code: ${_result} ==="
exit ${_result}
...failed PhaseScriptExecution <Execution>/Users/cheeseb/Documents/Vermont
Recipes 20 10.2/build/Vermont Recipes.build/Vermont
Recipes.build/BPTag000-script.sh ...
When Project Builder starts the build, it correctly identifies SRCROOT with
the absolute path to my project folder.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.