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: Deleting .svn folders after building



I renamed /Developer/Tools/pbxcp to /Developer/Tools/pbxcp.orig and made a shell script in its' place.

#!/bin/bash
/Developer/Tools/pbxcp.orig -exclude .svn "$@"

That way the .svn folder is never copied in the first place.

On Oct 19, 2004, at 7:46 PM, Sean McBride wrote:

Hi,

For those that use subversion, you know there are invisible .svn folders
that should not be there in the end.


My solution is to use a shell script build phase at the very end to find
and delete them. It's working, but I have some questions:


1) My script is:

FULLPATH=$TARGET_BUILD_DIR/$WRAPPER_NAME
find $FULLPATH -name '.svn' -print0 | xargs -0 rm -rf

I'm always *very* scared to us 'rm' as I'm no script expert. Does this
look right? I'm especially worried about non-ASCII filename and spaces...


2) What is the 'Input Files table' for? The docs say: "The Input Files
table specifies the files that the script operates on". But I can't know
this until 'find' runs.


Thanks!

--
Erroneous google translation: "To cook with the furnace approximately 15
minutes and to be useful."



_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Ashley Clark

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Deleting .svn folders after building (From: "Sean McBride" <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.