Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <7D5F213AF1EF264990B7C09ADD1B1CDDB8BF88@cheadle.ds.teradyne.com>
From: "Prasad, Kanuparthi" <Kanuparthi.Prasad@teradyne.com>
To: "'Gerrit P. Haase'" <gerrit@familiehaase.de>
Cc: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: RE: if construct doesn't work in makefile
Date: Thu, 11 Nov 2004 13:54:15 -0000
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"

Hi,

 I tried, but it doesn't work. I tried using cygwin syntax to access drives.
but invain.
 Also I tried by typing this script at the prompt. but it doesn't work the
way it is expected.
 Should I need to execute it in a separate shell, if so, how is it done.

Thanks & Regards,
sitaram

-----Original Message-----
From: Gerrit P. Haase [mailto:gerrit@familiehaase.de]
Sent: 11 November 2004 11:32
To: Prasad, Kanuparthi
Cc: 'cygwin@cygwin.com'
Subject: Re: if construct doesn't work in makefile


Prasad, Kanuparthi wrote:
> Hi,
> 
>   In my make file I am trying to check whether a directory exists or not
> then set a path differently if doesn't exist.
>   I am using cygwin installed on windows 2000.
>   The if construct I have is as follows.
> 
>   if test [-dc:/tools]; then DRIVE = c:/tools; else DRIVE = c:/altTools;
fi
> 
>  pls help me out.

Try
if test [-dc:/tools] ; then DRIVE=c:/tools; else DRIVE=c:/altTools; fi
instead, and/or use cygwin syntax to access drives.

Gerrit
-- 
=^..^=


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

