delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_NXDOMAIN,SPF_HELO_PASS,TW_YG,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Mail-Followup-To: | cygwin AT cygwin DOT com |
To: | cygwin AT cygwin DOT com |
From: | Gary <cygwin AT garydjones DOT name> |
Subject: | Re: How to detect CygWin SVN? |
Date: | Thu, 10 Feb 2011 13:23:29 +0100 |
Lines: | 22 |
Message-ID: | <ij0lc2$tgm$1@dough.gmane.org> |
References: | <AANLkTi=xp284SRr2os-oySBv4JQ7dm6NpgUEnqAfkcAH AT mail DOT gmail DOT com> <AANLkTinXPdAsw4WXCPLq-LGWKpCqe9rhX1cOh7484LHU AT mail DOT gmail DOT com> <AANLkTinqztphHsgA5ABjYwhtfZsP7LfeWV4PyXeAn7ZR AT mail DOT gmail DOT com> |
Mime-Version: | 1.0 |
User-Agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.2 (cygwin) |
X-No-Archive: | Yes |
Mail-Copies-To: | never |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Jochen Wiedmann wrote: > On Wed, Feb 9, 2011 at 10:57 PM, Csaba Raduly <rcsaba AT gmail DOT com> wrote: > >> Question is, why do you think you need to detect it ? > > Assuming that I'd like to use the -f option of SVN (commit a list of > files, which are present in the file given by -f), the contents of the > file in question are quite different for CygWin SVN (/cygdrive/c/...) > and a native SVN. (C:\...) cygpath. Works from the Windows command line as well as bash and its friends. If you're lucky, cygpath -f does exactly what you want, but it appears to be undocumented... >> How about this: >> cygcheck `which svn` | grep cygwin1.dll > > That's another solution that works excellent, if I know that CygWin is > present ... which I don't. So use a shell script for Cygwin, and a batch/command file for non-Cygwin. Set paths accordingly. Done. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |