Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PB/GCC exports/statics questions



On Monday, September 22, 2003, at 07:06 PM, Jim Wintermyre wrote:

If you don't want to do an install build, but just want to run "strip" on the binary produced by building in PB, you can do it from a shell script build phase instead...

I had figured I may need to do this instead, just didn't have any experience with shell scripts yet. Any links to a good tutorial?

I don't know about tutorials; I taught myself Bash shell scripting by:
(1) reading the manual, available online at <http://www.gnu.org/manual/bash-2.05a/html_mono/bashref.html>,
(2) reading other peoples' shell scripts, and
(3) experimenting.

But I suspect the following line of shellcode will work, unless you're making a framework (but I haven't tested it, so use at your own risk, etc.):

strip -x "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}/Contents/ MacOS/${PRODUCT_NAME}"

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://seiryu.home.comcast.net/

"I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." - Bjarne Stroustrup
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: PB/GCC exports/statics questions (From: Jim Wintermyre <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.