svn commit: r51111 - head/share/mk

Wolfram Schneider wosch at FreeBSD.org
Thu Oct 12 14:57:51 UTC 2017


Author: wosch
Date: Thu Oct 12 14:57:50 2017
New Revision: 51111
URL: https://svnweb.freebsd.org/changeset/doc/51111

Log:
  refactor to use make syntax instead shell/test scripts
  
  PR: 222939

Modified:
  head/share/mk/doc.translate.mk

Modified: head/share/mk/doc.translate.mk
==============================================================================
--- head/share/mk/doc.translate.mk	Thu Oct 12 14:57:29 2017	(r51110)
+++ head/share/mk/doc.translate.mk	Thu Oct 12 14:57:50 2017	(r51111)
@@ -81,11 +81,11 @@ ${PO_LANG}.mo:	${PO_LANG}.po
 	@${MSGFMT} -o ${.TARGET} ${.ALLSRC}
 
 tran ${DOC}.xml:	${DOC}.translate.xml ${PO_LANG}.mo
-	@if [ "${TRAN_DIR}" = "${EN_DIR}" ]; then \
-		${ECHO} "build translation in a non-English dir" ; \
-		exit 1 ; \
-	 fi
+.if ${TRAN_DIR} == ${EN_DIR}
+	@${ECHO} "build translation in a non-English dir, ignored"
+.else
 	${ITSTOOL} -l ${PO_LANG} -m ${PO_LANG}.mo -o ${DOC}.xml ${DOC}.translate.xml
+.endif
 .endif
 
 


More information about the svn-doc-all mailing list