delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <41934D94.6040407@familiehaase.de> |
Date: | Thu, 11 Nov 2004 12:31:32 +0100 |
From: | "Gerrit P. Haase" <gerrit AT familiehaase DOT de> |
Organization: | Esse keine toten Tiere |
User-Agent: | Mozilla Thunderbird 0.9 (Windows/20041103) |
MIME-Version: | 1.0 |
To: | "Prasad, Kanuparthi" <Kanuparthi DOT Prasad AT teradyne DOT com> |
CC: | "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com> |
Subject: | Re: if construct doesn't work in makefile |
References: | <7D5F213AF1EF264990B7C09ADD1B1CDDB8BF86 AT cheadle DOT ds DOT teradyne DOT com> |
In-Reply-To: | <7D5F213AF1EF264990B7C09ADD1B1CDDB8BF86@cheadle.ds.teradyne.com> |
X-IsSubscribed: | yes |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |