From: Jochen Wiedmann <jochen.wiedmann@gmail.com>
To: cygwin@cygwin.com
Subject: Re: How to detect CygWin SVN?
Date: Wed, 09 Feb 2011 20:29:00 -0000 [thread overview]
Message-ID: <AANLkTi==mNbB2mcgjET3tGW2AWoYc5JWq1ytQiSCKyXx@mail.gmail.com> (raw)
In-Reply-To: <4D52F872.6040904@bopp.net>
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 <jeremy@bopp.net> wrote:
> On 02/09/2011 02:22 PM, Jochen Wiedmann wrote:
>> On Wed, Feb 9, 2011 at 8:17 PM, Jeremy Bopp <jeremy@bopp.net> 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) = '/usr/bin/svn' ]; then
>>> echo "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? You can do something
> 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: http://cygwin.com/problems.html
> FAQ: http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>
>
--
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
next prev parent reply other threads:[~2011-02-09 20:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-09 19:11 Jochen Wiedmann
2011-02-09 19:17 ` Jeremy Bopp
2011-02-09 20:22 ` Jochen Wiedmann
2011-02-09 20:26 ` Jeremy Bopp
2011-02-09 20:29 ` Jochen Wiedmann [this message]
2011-02-09 21:57 ` Csaba Raduly
2011-02-10 11:54 ` Jochen Wiedmann
2011-02-10 12:23 ` Gary
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTi==mNbB2mcgjET3tGW2AWoYc5JWq1ytQiSCKyXx@mail.gmail.com' \
--to=jochen.wiedmann@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).