From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 19 05:56:37 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 2887116A412 for ; Tue, 19 Dec 2006 05:56:37 +0000 (UTC) (envelope-from freebsd@alaskaparadise.com) Received: from stargate.alaskaparadise.com (114-103-74-65.gci.net [65.74.103.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FE2543CA3 for ; Tue, 19 Dec 2006 05:55:01 +0000 (GMT) (envelope-from freebsd@alaskaparadise.com) Received: from localhost (localhost [127.0.0.1]) by stargate.alaskaparadise.com (Postfix) with ESMTP id 25EDA45B9 for ; Mon, 18 Dec 2006 20:30:45 -0900 (AKST) From: Beech Rintoul Organization: Alaska Paradise Travel To: freebsd-hackers@freebsd.org Date: Mon, 18 Dec 2006 20:30:28 -0900 User-Agent: KMail/1.9.4 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2987694.BgqNRHeZnp"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200612182030.42795.freebsd@alaskaparadise.com> Subject: if exists statement X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@alaskaparadise.com 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 05:56:37 -0000 --nextPart2987694.BgqNRHeZnp Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I'm trying to write an if exists for a port makefile. I tried: =2Eif exists=3D ${PREFIX}/etc/rc.d exit else ${MKDIR} ${PREFIX}/etc/rc.d =2Eendif but it doesn't work. Can someone give me the right syntax? TIA Beech =2D-=20 =2D------------------------------------------------------------------------= =2D------------- Beech Rintoul - Sys. Administrator - beech@alaskaparadise.com /"\ ASCII Ribbon Campaign | Alaska Paradise Travel \ / - NO HTML/RTF in e-mail | 201 East 9Th Avenue Ste.310 X - NO Word docs in e-mail | Anchorage, AK 99501 / \ - Please visit Alaska Paradise - http://www.alaskaparadise.com =2D------------------------------------------------------------------------= =2D------------- --nextPart2987694.BgqNRHeZnp Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQBFh3kCR5sEeCt9j00RAtNxAJ4kZCkG9EFnNy+vQQmuhWUo2kjZ3wCeNXsy y3KZB0iinbGGYqp0XfOzXIA= =ElPc -----END PGP SIGNATURE----- --nextPart2987694.BgqNRHeZnp--