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>
index | next in thread | raw e-mail
[-- Attachment #1 --]
I'm trying to write an if exists for a port makefile.
I tried:
.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?
TIA
Beech
--
---------------------------------------------------------------------------------------
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
---------------------------------------------------------------------------------------
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)
iD8DBQBFh3kCR5sEeCt9j00RAtNxAJ4kZCkG9EFnNy+vQQmuhWUo2kjZ3wCeNXsy
y3KZB0iinbGGYqp0XfOzXIA=
=ElPc
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612182030.42795.freebsd>
