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