From aa5651e69cb736a7b900dbc0ab1e98651147cf42 Mon Sep 17 00:00:00 2001 From: Simon Schubert Date: Tue, 18 Aug 2009 18:16:50 +0200 Subject: [PATCH] distrib-dirs: invert logic If test ! -e sys fails, no ln will be called, but also the return value of the whole command will be non-zero. In this make will abort. Fix this by inverting the logic, either returning zero from the successful test -e sys, or returning the return value of the ln -s. --- etc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/Makefile b/etc/Makefile index f40a7bd17c..937b61db03 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -359,7 +359,7 @@ distrib-dirs: mtree -deU -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/ .endif cd ${DESTDIR}/etc/namedb; rm -f etc/namedb; ${LN} -s ".." etc/namedb - cd ${DESTDIR}/; test \! -e sys && ${LN} -s usr/src/sys sys + cd ${DESTDIR}/; test -e sys || ${LN} -s usr/src/sys sys cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ${LN} -sf ../man* . cd ${DESTDIR}/usr/share/man; \ set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ -- 2.11.4.GIT