if exists statement

Joseph Koshy joseph.koshy at gmail.com
Mon Dec 18 22:44:45 PST 2006


> .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


More information about the freebsd-hackers mailing list