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

Re: Scripts across multiple platforms

From: Brandon Ehle <azverkan_at_yahoo.com>
Date: 2003-10-14 19:42:34 CEST

Paul Gross wrote:

> I use my subversion repository from both windows and unix. I already
> use the property to have my files use the native line endings. The
> problem is that I use a bunch of python scripts. On Unix, the first
> line has to be #!/usr/local/bin/python, but on windows, its something
> like #!/python23/python.exe.
>
> So the general question is if there is a way to make subversion change
> the contents of files based on operating system at checkout time? Or
> more specifically, is there a nice way to make it insert the correct
> script header whenever I checkout/update? Thanks.
>
You shouldn't need to do this. Unless you are using cygwin on Windows,
Windows uses the OS facilities for binding a file type to its handler.
If you use cygwin, you can easily fix the scripts to work from anywhere
by changing the initial line to:

#!/usr/bin/env python

Which will find the first instance of python in your path on Unix or
Windows.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 14 19:43:26 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.