[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: Paul Gross <paul_at_grosss.net>
Date: 2003-10-14 19:58:33 CEST

But the python scripts are being run as a cgi with apache, which does rely
on the script header. Apache uses the path in the header to find the
python interpreter. If the path isn't correct, I get an Internal Server Error.

At 12:42 PM 10/14/2003, Brandon Ehle wrote:
>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

---------------------------------------------------------------------
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:59:39 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.