refactor to use make syntax instead shell/test scripts

PR: 222939
This commit is contained in:
Wolfram Schneider 2017-10-12 14:57:50 +00:00
parent 68c9592c28
commit 8737e8fded
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=51111

View file

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