svn commit: r51402 - head/share/mk
Wolfram Schneider
wosch at freebsd.org
Sat Feb 3 12:05:31 UTC 2018
On 2 February 2018 at 17:55, Warren Block <wblock at freebsd.org> wrote:
> Author: wblock
> Date: Fri Feb 2 16:55:24 2018
> New Revision: 51402
> URL: https://svnweb.freebsd.org/changeset/doc/51402
>
> Log:
> Unbreak building of translated PO files. Also intentionally hide make(1)
> output. This is not only unhelpful for translators, it is distracting
> from the already difficult job of translation. If verbose output is
> desired, 'make -l' can be used.
This commit is hard to read. As far as I understand, the "Unbreak
building of translated PO files" part is a single line change,
removing some bytes (keep ${DOC}.translate.xml)
git diff -b -U1 2ac5931a3c38a2d8eaebfa3140a51bfb7750d56e doc.translate.mk
diff --git a/share/mk/doc.translate.mk b/share/mk/doc.translate.mk
index 0030211929..a878adfca2 100644
--- a/share/mk/doc.translate.mk
+++ b/share/mk/doc.translate.mk
@@ -72,3 +72,3 @@ ${PO_LANG}.po: ${DOC}.translate.xml
${MV} ${PO_LANG}.po.new ${PO_LANG}.po
- ${RM} ${PO_LANG}.po.tmp ${DOC}.translate.xml
+ ${RM} ${PO_LANG}.po.tmp
.else
all the rest is cosmetic or spell checking.
Can we please not mix bugfixes with cosmetic changes? Thanks.
-Wolfram
>
> Modified:
> head/share/mk/doc.translate.mk
>
> Modified: head/share/mk/doc.translate.mk
> ==============================================================================
> --- head/share/mk/doc.translate.mk Thu Feb 1 15:33:28 2018 (r51401)
> +++ head/share/mk/doc.translate.mk Fri Feb 2 16:55:24 2018 (r51402)
> @@ -43,16 +43,16 @@ MASTER_SRCS!= ${MAKE} -C ${EN_DIR} -V SRCS
>
> ${DOC}.translate.xml:
> .if ${TRAN_DIR} == ${EN_DIR}
> - @${ECHO} "Please build PO file only in a non-English dir, ignored"
> + @${ECHO} "Please build PO file only in a non-English directory, ignored"
> .else
> # some SRCS files might need to be generated, make sure they exist
> - ${MAKE} -C ${EN_DIR} ${MASTER_SRCS} > /dev/null
> + @${MAKE} -C ${EN_DIR} ${MASTER_SRCS} > /dev/null
> # normalize the English original into a single file
> - ${PO_XMLLINT} --nonet --noent --valid --xinclude ${MASTERDOC_EN} > ${.TARGET}.tmp
> + @${PO_XMLLINT} --nonet --noent --valid --xinclude ${MASTERDOC_EN} > ${.TARGET}.tmp
> # remove redundant namespace attributes
> - ${PO_XMLLINT} --nsclean ${.TARGET}.tmp > ${.TARGET}
> - ${RM} ${.TARGET}.tmp
> - ${MAKE} -C ${EN_DIR} clean > /dev/null
> + @${PO_XMLLINT} --nsclean ${.TARGET}.tmp > ${.TARGET}
> + @${RM} ${.TARGET}.tmp
> + @${MAKE} -C ${EN_DIR} clean > /dev/null
> .endif
>
> .if ${TRAN_DIR} == ${EN_DIR}
> @@ -64,27 +64,27 @@ po: ${PO_LANG}.po
> .PHONY: po
>
> ${PO_LANG}.po: ${DOC}.translate.xml
> - ${ITSTOOL} -o ${PO_LANG}.po.tmp ${DOC}.translate.xml
> + @${ITSTOOL} -o ${PO_LANG}.po.tmp ${DOC}.translate.xml
> .if exists(${PO_LANG}.po)
> @${ECHO} "${PO_LANG}.po exists, merging"
> - ${MSGMERGE} -o ${PO_LANG}.po.new ${PO_LANG}.po ${PO_LANG}.po.tmp
> - ${MSGATTRIB} --no-obsolete -o ${PO_LANG}.po.new ${PO_LANG}.po
> - ${MV} ${PO_LANG}.po.new ${PO_LANG}.po
> - ${RM} ${PO_LANG}.po.tmp ${DOC}.translate.xml
> + @${MSGMERGE} -o ${PO_LANG}.po.new ${PO_LANG}.po ${PO_LANG}.po.tmp
> + @${MSGATTRIB} --no-obsolete -o ${PO_LANG}.po.new ${PO_LANG}.po
> + @${MV} ${PO_LANG}.po.new ${PO_LANG}.po
> + @${RM} ${PO_LANG}.po.tmp
> .else
> @${ECHO} "${PO_LANG}.po created, please check and correct the settings in the header"
> - ${MV} ${PO_LANG}.po.tmp ${PO_LANG}.po
> - ${POSET_CMD} ${.TARGET}
> + @${MV} ${PO_LANG}.po.tmp ${PO_LANG}.po
> + @${POSET_CMD} ${.TARGET}
> .endif
>
> ${PO_LANG}.mo: ${PO_LANG}.po
> - ${MSGFMT} -o ${.TARGET} ${.ALLSRC}
> + @${MSGFMT} -o ${.TARGET} ${.ALLSRC}
>
> tran ${DOC}.xml: ${DOC}.translate.xml ${PO_LANG}.mo
> .if ${TRAN_DIR} == ${EN_DIR}
> - @${ECHO} "Please build translation only in a non-English dir, ignored"
> + @${ECHO} "Please build translation only in a non-English directory, ignored"
> .else
> - ${ITSTOOL} -l ${PO_LANG} -m ${PO_LANG}.mo -o ${DOC}.xml ${DOC}.translate.xml
> + @${ITSTOOL} -l ${PO_LANG} -m ${PO_LANG}.mo -o ${DOC}.xml ${DOC}.translate.xml
> .endif
> .endif
>
>
--
Wolfram Schneider <wosch at FreeBSD.org> https://wolfram.schneider.org
More information about the svn-doc-head
mailing list