From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31668 invoked by alias); 9 Feb 2011 20:29:21 -0000 Received: (qmail 31658 invoked by uid 22791); 9 Feb 2011 20:29:21 -0000 X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_SV,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-qw0-f43.google.com (HELO mail-qw0-f43.google.com) (209.85.216.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 Feb 2011 20:29:14 +0000 Received: by qwk3 with SMTP id 3so487877qwk.2 for ; Wed, 09 Feb 2011 12:29:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.27.80 with SMTP id h16mr13474570qcc.191.1297283351694; Wed, 09 Feb 2011 12:29:11 -0800 (PST) Received: by 10.229.68.72 with HTTP; Wed, 9 Feb 2011 12:29:11 -0800 (PST) In-Reply-To: <4D52F872.6040904@bopp.net> References: <4D52E83B.2020908@bopp.net> <4D52F872.6040904@bopp.net> Date: Wed, 09 Feb 2011 20:29:00 -0000 Message-ID: Subject: Re: How to detect CygWin SVN? From: Jochen Wiedmann To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-02/txt/msg00260.txt.bz2 Preferrably cmd Or, in the alternative, the output of a cmd-Shell invocation to be analyzed by some Java program. On Wed, Feb 9, 2011 at 9:26 PM, Jeremy Bopp wrote: > On 02/09/2011 02:22 PM, Jochen Wiedmann wrote: >> On Wed, Feb 9, 2011 at 8:17 PM, Jeremy Bopp wrote: >> >>> I'm assuming that your script expects svn to be in the PATH, so you >>> could check to see if the path to the svn client lives within Cygwin's >>> installation: >>> >>> if [ $(type -p svn) =3D '/usr/bin/svn' ]; then >>> =C2=A0echo "Found Cygwin's svn client" >>> fi >>> >>> Unless someone goes out of their way to confound things, this should be >>> good enough. >> >> Thanks for the idea. However, I'd prefer a solution that works with >> the native cmd-Shell too. Otherwise, I'd assume that CygWin is >> installed. > > Since you want a solution that works in either environment, in what > language are you going to implement your script? =C2=A0You can do somethi= ng > very similar in Perl and other such languages, but I can't think of a > single method that would work in both bash and cmd without at least some > syntax tweaks. > > -Jeremy > > -- > Problem reports: =C2=A0 =C2=A0 =C2=A0 http://cygwin.com/problems.html > FAQ: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 http:= //cygwin.com/faq/ > Documentation: =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://cygwin.com/docs.html > Unsubscribe info: =C2=A0 =C2=A0 =C2=A0http://cygwin.com/ml/#unsubscribe-s= imple > > --=20 I Am What I Am And That's All What I Yam (Popeye) -- 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