• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can't pipe files to compileHelp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't pipe files to compileHelp


  • Subject: Re: Can't pipe files to compileHelp
  • From: Jim Correia <email@hidden>
  • Date: Sun, 4 Aug 2002 13:12:44 -0400

On Sunday, August 4, 2002, at 11:43 AM, Bill Cheeseman wrote:

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

Literally? If so, that is your problem.

When you write ./preprocesing.sh the shell expects an executable. So you'll have to make your script executable (with the executable bit) and have a valid shebang line at the top. Alternatively, you can also write sh preprocessing.sh.

Anyway, following your style, I set up a problem which works.

http://homepage.mac.com/jimcorreia/compileHelpSample.tar.gz

In a "real" project, since Help.plist is a strictly generated file, I'd probably generate it into the builds folder and reference it there so it would land in the source folder and want to be checked into revision control.

Dealing with multiple languages is SEP (someone else's problem).

Jim
_______________________________________________
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.

  • Follow-Ups:
    • Re: Can't pipe files to compileHelp
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: Can't pipe files to compileHelp (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: NSDate XML Format
  • Next by Date: Re: Opening files in external applications
  • Previous by thread: Re: Can't pipe files to compileHelp
  • Next by thread: Re: Can't pipe files to compileHelp
  • Index(es):
    • Date
    • Thread