[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: eol crazy - trouble with "old" Mac OS eol (CR)

From: Ryan Wilcox <ryanwilcox_at_mac.com>
Date: 2004-08-02 15:35:17 CEST

On 7/30/04, at 9:48 AM, Ben Collins-Sussman said:

>On Fri, 2004-07-30 at 09:01, William Bug wrote:
>
>> If not, is there anyway to automatically run a program on the client
>> side after each 'checkout' or 'update'. This is strictly a client-side
>> problem, as the server repository has no conception of old Mac OS
>> Finder attributes. I can write a simple AppleScript capable of easily
>> setting this file type attribute for text files. How might I set up my
>> svn client to make use of this AS script upon each 'checkout' and
>> 'update'?
>
>svn has no client-side 'hook' or 'trigger' scripts, only server-side.
>
>Rather than doing
>
> on unix: svn update
> on OS 9: run applescript-script-to-set-resource-fork
>
>I think something simpler might be:
>
> 'binhex' the files and keep *those* under version control
> on unix: svn update
> on OS 9: unbinhex, perhaps as part of the build system?

Or perhaps write a shell script (like the one that follows:)

svn update
cd folderWithTheFiles/
/Developer/Tools/SetFile -c R*ch -t TEXT *

then run the shell script instead of doing a svn update directly.

Hope this helps,
_Ryan Wilcox

================================================================
Wilcox Development Solutions: http://www.wilcoxd.com
Toolsmiths for the Internet Age PGP: 0x2F4E9C31

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 2 15:35:46 2004

This is an archived mail posted to the Subversion Users mailing list.