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

Re: svn trunk r17244: FAIL (x86_64-unknown-linux-gnu static ra_svn fsfs)

From: David James <james82_at_gmail.com>
Date: 2005-11-09 18:45:43 CET

On 11/9/05, Madan U Sreenivasan <madan@collab.net> wrote:
> On Wed, 2005-11-09 at 23:02, David James wrote:
> > On 11/9/05, Madan U Sreenivasan <madan@collab.net> wrote:
> > > On Wed, 2005-11-09 at 22:47, David James wrote:
> > > > [snip]
> > > > > + file_append (hook,
> > > > > + "@echo off\n",
> > > > > + hook_py)
> > > > On Windows, we need to call Python scripts using the full path to the
> > > > Python interpreter. Here is an example:
> > > > file_append(hook, "@%s %s" % (sys.executable, hook.py))
> > > doesnt the shebang line take care of it? or doesnt windows recognize the
> > > '#!'?
> > >
> > > sorry, my windows skills are rusty...
> > Windows does not recognize shebang lines, unfortunately
> Okay.. here it is... pl. find the patch attached...
>
> Thanks to you and Malcolm Rowe(for pointing out the double shebang
> problem)

Oops, there are two more small problems:
>+ file_append (hook,
>+ "@echo off\n"
>+ "@%s %s\n" % (sys.executable, hook.py))

Instead of hook.py, it should be hook_py. Also, there is no need for
"@echo off\n", since the ensuing line is prefixed with an "@" sign.

From http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/echo.mspx:
"To prevent echoing of a line, insert an at sign (@) in front of a
command in a batch program."

Cheers,

David

--
David James -- http://www.cs.toronto.edu/~james
Received on Wed Nov 9 18:46:25 2005

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