X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_SV,TW_YG,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <AANLkTi=xp284SRr2os-oySBv4JQ7dm6NpgUEnqAfkcAH@mail.gmail.com> References: <AANLkTi=xp284SRr2os-oySBv4JQ7dm6NpgUEnqAfkcAH AT mail DOT gmail DOT com> Date: Wed, 9 Feb 2011 22:57:40 +0100 Message-ID: <AANLkTinXPdAsw4WXCPLq-LGWKpCqe9rhX1cOh7484LHU@mail.gmail.com> Subject: Re: How to detect CygWin SVN? From: Csaba Raduly <rcsaba AT gmail DOT com> To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: <cygwin.cygwin.com> List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 Hi Jochen, On 2/9/11, Jochen Wiedmann wrote: > Hi, > > I'd like to write a script, which ought to work with the CygWin SVN > client as well as any native SVN clients. As a prerequisite, I need to > detect whether the "svn" program in the path is CygWin SVN or not. > Question is, how to do this? Question is, why do you think you need to detect it ? How about this: cygcheck `which svn` | grep cygwin1.dll (you could replace `which svn` with the full path of the svn executable) Csaba -- GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ Life is complex, with real and imaginary parts. "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds "People disagree with me. I just ignore them." -- Linus Torvalds -- 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