Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.sanity.mk
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
.if defined(${a}) | .if defined(${a}) | ||||
ERROR+= "${a} is unsupported, please use ${${a}_ALT}" | ERROR+= "${a} is unsupported, please use ${${a}_ALT}" | ||||
.endif | .endif | ||||
.endfor | .endfor | ||||
# Warnings only when DEVELOPER=yes | # Warnings only when DEVELOPER=yes | ||||
.if defined(DEVELOPER) | |||||
.if exists(${.CURDIR}/../../Mk/bsd.port.mk) || ${OVERLAYS:tA:M${.CURDIR:H:H}} == ${.CURDIR:H:H} | .if exists(${.CURDIR}/../../Mk/bsd.port.mk) || ${OVERLAYS:tA:M${.CURDIR:H:H}} == ${.CURDIR:H:H} | ||||
.if ${.CURDIR:H:T} != ${PKGCATEGORY} | .if ${.CURDIR:H:T} != ${PKGCATEGORY} | ||||
DEV_ERROR+= "The first entry in CATEGORIES should be the directory where the port lives" | DEV_ERROR+= "The first entry in CATEGORIES should be the directory where the port lives" | ||||
.endif | .endif | ||||
.else | .else | ||||
DEV_WARNING+= "Not validating first entry in CATEGORIES due to being outside of PORTSDIR. Please ensure this is proper when committing." | DEV_WARNING+= "Not validating first entry in CATEGORIES due to being outside of PORTSDIR. Please ensure this is proper when committing." | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 237 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.endfor | .endfor | ||||
.for a in ${SANITY_UNSUPPORTED} | .for a in ${SANITY_UNSUPPORTED} | ||||
.if defined(${a}) | .if defined(${a}) | ||||
DEV_ERROR+= "${a} is unsupported, please use ${${a}_ALT}" | DEV_ERROR+= "${a} is unsupported, please use ${${a}_ALT}" | ||||
.endif | .endif | ||||
.endfor | .endfor | ||||
.endif # defined(DEVELOPER) |