Discussion:
[p4] Perforce client for cygwin
Rajesh Vaidheeswarran
2001-09-14 21:05:38 UTC
Permalink
Is there a p4 client for windows that is built with cygwin?

rv
Todd Short
2001-09-14 21:15:55 UTC
Permalink
Yes, Perforce did build one at one point. However, it is not compatible with
P4Win because the pathnames are cygwin style:

//e/workspace

rather than:

e:\workspace

So, you get to use one, but not the other.

--
-Todd Short
// ***@cisco.com
// "One if by land, two if by sea, three if by the Internet."
-----Original Message-----
Vaidheeswarran
Sent: Friday, September 14, 2001 5:06 PM
Subject: [p4] Perforce client for cygwin
Is there a p4 client for windows that is built with cygwin?
rv
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
Karr, David
2001-09-14 22:04:30 UTC
Permalink
As another poster said, yes, there is, but it's not worth it.

I use the Windows P4 in Cygwin by creating a "wrapper script" that shadows
"p4", and converts:

p4 args

to:

p4 -d $(cygpath -w $PWD) args

The easy way is to call it "wp4", or something like that. I went a little
further so I could still call it "p4", by making sure my "wrapper scripts"
are always first in the PATH, and having a little script I wrote called
"pathsearch", which allows me to do something like "$(pathsearch 2 p4)",
which returns the SECOND occurrence of "p4" in the PATH. I occasionally use
this to wrap other applications in the same way.

-----Original Message-----
From: Rajesh Vaidheeswarran [mailto:***@nauticusnet.com]
Sent: Friday, September 14, 2001 2:06 PM
To: 'perforce-***@perforce.com'
Cc: '***@perforce.com'; Brad Cervenak
Subject: [p4] Perforce client for cygwin


Is there a p4 client for windows that is built with cygwin?

rv
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
d***@redspark.com
2001-09-14 23:04:36 UTC
Permalink
Here's a shell function I use in cygwin to access pure-nt clients from bash:

ntp4 ()
{
here="`cygpath -w \"$PWD\"`";
PWD="$here" //c/Program\ Files/Perforce/p4 "$@"
}

With P4CLIENT set to the pure-nt client, I can be in cygwin and cd into the windows client, and use ntp4 where I would use p4.
Adjust the second line to your NT Perforce installation of course.

-d

-----Original Message-----
From: Todd Short [mailto:***@cisco.com]
Sent: Friday, September 14, 2001 2:16 PM
To: ***@nauticusnet.com; perforce-***@perforce.com
Cc: ***@perforce.com; ***@nauticusnet.com
Subject: RE: [p4] Perforce client for cygwin


Yes, Perforce did build one at one point. However, it is not compatible with
P4Win because the pathnames are cygwin style:

//e/workspace

rather than:

e:\workspace

So, you get to use one, but not the other.

--
-Todd Short
// ***@cisco.com
// "One if by land, two if by sea, three if by the Internet."
-----Original Message-----
Vaidheeswarran
Sent: Friday, September 14, 2001 5:06 PM
Subject: [p4] Perforce client for cygwin
Is there a p4 client for windows that is built with cygwin?
rv
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user

Loading...