Fix `make po' for updates

PR:		227905
Differential Revision:	https://reviews.freebsd.org/D15263
This commit is contained in:
Wolfram Schneider 2018-05-10 20:06:54 +00:00
parent 12e028fa49
commit c3656ef449
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=51638

View file

@ -68,9 +68,9 @@ ${PO_LANG}.po: ${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
@${MSGATTRIB} --no-obsolete -o ${PO_LANG}.po.tmp ${PO_LANG}.po.new
@${RM} ${PO_LANG}.po.new
@${MV} ${PO_LANG}.po.tmp ${PO_LANG}.po
.else
@${ECHO} "${PO_LANG}.po created, please check and correct the settings in the header"
@${MV} ${PO_LANG}.po.tmp ${PO_LANG}.po