Subject: fail-wrapper target
To: None <pkgsrc-users@netbsd.org>
From: Rui Paulo <rpaulo@fnop.net>
List: pkgsrc-users
Date: 01/24/2007 17:19:36
I beginning to wonder if the following target (in compiler.mk):

.PHONY: fail-wrapper
fail-wrapper: .USE
         ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
         ${_PKG_SILENT}$ 
{_PKG_DEBUG}                                     \
         exec 1>$ 
{.TARGET};                                              \
         ${ECHO} '#!'$ 
{TOOLS_SHELL:Q};                                   \
         ${ECHO} 'wrapperlog="$${TOOLS_WRAPPER_LOG-'$ 
{_TOOLS_WRAP_LOG:Q}'}"'; \
         ${ECHO} ${ECHO:Q} '"*** Please consider adding USE_LANGUAGES 
+='${.TARGET:T:S/-fail-wrapper//:Q}' to the package Makefile." >> $ 
$wrapperlog'; \
         ${ECHO} ${ECHO:Q} '"*** Please consider adding USE_LANGUAGES 
+='${.TARGET:T:S/-fail-wrapper//:Q}' to the package Makefile." > $ 
{WARNING_DIR}/${.TARGET:T}'; \
         ${ECHO} 'exit 1'
         ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}


should only "echo" if PKGSRC_DEVELOPER is set.

Comments?

Please CC me.

Regards,
--
Rui Paulo