This is the mail archive of the
mailing list for the Cygwin project.
Re: How to detect CygWin SVN?
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 <firstname.lastname@example.org> wrote:
> On 02/09/2011 02:22 PM, Jochen Wiedmann wrote:
>> On Wed, Feb 9, 2011 at 8:17 PM, Jeremy Bopp <email@example.com> 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
>>> if [ $(type -p svn) = '/usr/bin/svn' ]; then
>>> Âecho "Found Cygwin's svn client"
>>> 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
> 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.
> 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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple