Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Dec 2006 20:30:28 -0900
From:      Beech Rintoul <freebsd@alaskaparadise.com>
To:        freebsd-hackers@freebsd.org
Subject:   if exists statement
Message-ID:  <200612182030.42795.freebsd@alaskaparadise.com>

next in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612182030.42795.freebsd>