From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10301 invoked by alias); 9 Feb 2011 19:11:06 -0000 Received: (qmail 10292 invoked by uid 22791); 9 Feb 2011 19:11:05 -0000 X-SWARE-Spam-Status: No, hits=4.6 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-qy0-f178.google.com (HELO mail-qy0-f178.google.com) (209.85.216.178) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 Feb 2011 19:11:00 +0000 Received: by qyk33 with SMTP id 33so427326qyk.2 for ; Wed, 09 Feb 2011 11:10:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.229.135 with SMTP id ji7mr15204098qcb.229.1297278656498; Wed, 09 Feb 2011 11:10:56 -0800 (PST) Received: by 10.229.68.72 with HTTP; Wed, 9 Feb 2011 11:10:56 -0800 (PST) Date: Wed, 09 Feb 2011 19:11:00 -0000 Message-ID: Subject: How to detect CygWin SVN? From: Jochen Wiedmann To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 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/msg00255.txt.bz2 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? Because the output of "svn --version" contains nothing that indicates compilation with CygWin. Thanks for any suggestions, Jochen -- I Am What I Am And That's All What I Yam (Popeye) bash-4.1$ svn --version svn, version 1.6.15 (r1038135) compiled Nov 29 2010, 14:09:28 Copyright (C) 2000-2009 CollabNet. Subversion is open source software, see http://subversion.apache.org/ This product includes software developed by CollabNet (http://www.Collab.Net/). The following repository access (RA) modules are available: * ra_neon : Module for accessing a repository via WebDAV protocol using Neon. - handles 'http' scheme - handles 'https' scheme * ra_svn : Module for accessing a repository using the svn network protocol. - with Cyrus SASL authentication - handles 'svn' scheme * ra_local : Module for accessing a repository on local disk. - handles 'file' scheme * ra_serf : Module for accessing a repository via WebDAV protocol using serf. - handles 'http' scheme - handles 'https' scheme -- 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