• 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: shell script to selectively copy files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell script to selectively copy files?


  • Subject: Re: shell script to selectively copy files?
  • From: Paul Russell <email@hidden>
  • Date: Thu, 8 Jul 2004 22:13:25 -0700

On Jul 8, 2004, at 4:47 PM, Chuck Soper wrote:


I just glanced at the man page for rsync. It looks very useful for my situation. I'll keep it in mind for when I try to write a smarter shell script. It'd be nice to see an example of rsync in an Xcode shell script target or build phase (if anyone has one).




Just change ditto to rsync -a and put trailing slashes on your paths, i.e.


% ditto "$SRCROOT/subDir/fileName" "$TARGET_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH/subDir/fileName"

becomes

% rsync -a "$SRCROOT/subDir/fileName/" "$TARGET_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH/subDir/fileName/"

Paul
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: shell script to selectively copy files?
      • From: Chuck Soper <email@hidden>
References: 
 >shell script to selectively copy files? (From: Chuck Soper <email@hidden>)
 >Re: shell script to selectively copy files? (From: Chuck Soper <email@hidden>)

  • Prev by Date: Re: Framework subgroups, and Framework header directory creation
  • Next by Date: Re: Setting up CVS so it actually works!
  • Previous by thread: Re: shell script to selectively copy files?
  • Next by thread: Re: shell script to selectively copy files?
  • Index(es):
    • Date
    • Thread