From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 19 06:44:45 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6F23016A403 for ; Tue, 19 Dec 2006 06:44:45 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id C16E143C9F for ; Tue, 19 Dec 2006 06:44:44 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1500180uge for ; Mon, 18 Dec 2006 22:44:33 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=inuWsa2iz0voM0zstnqgGBqleCp9fguMB+ydW56mmSaso14hMuP5jr2UYG35DYt5ynQTTyNTEny0opFXecawLi4ybmS817pAao9WYZ32OyJGDylO7yB4JgRgZudMSeuaYHPLdlZoS5aaP/8OcL71MtnK694z/RwivVE4a3LpJc0= Received: by 10.78.180.18 with SMTP id c18mr3149526huf.1166509199569; Mon, 18 Dec 2006 22:19:59 -0800 (PST) Received: by 10.78.81.12 with HTTP; Mon, 18 Dec 2006 22:19:59 -0800 (PST) Message-ID: <84dead720612182219x4c8567c0o7ef70c439e240788@mail.gmail.com> Date: Tue, 19 Dec 2006 11:49:59 +0530 From: "Joseph Koshy" To: freebsd@alaskaparadise.com In-Reply-To: <200612182030.42795.freebsd@alaskaparadise.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200612182030.42795.freebsd@alaskaparadise.com> Cc: freebsd-hackers@freebsd.org Subject: Re: if exists statement X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2006 06:44:45 -0000 > .if exists= ${PREFIX}/etc/rc.d > exit > else > ${MKDIR} ${PREFIX}/etc/rc.d > .endif > > but it doesn't work. > > Can someone give me the right syntax? .if exists(${PREFIX}/etc/rc.d) .else .endif -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy