refactor to use make syntax instead shell/test scripts

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

View file

@ -65,17 +65,17 @@ po: ${PO_LANG}.po
${PO_LANG}.po: ${DOC}.translate.xml ${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 [ -f "${PO_LANG}.po" ]; then \ .if exists(${PO_LANG}.po)
echo "${PO_LANG}.po exists, merging" ; \ echo "${PO_LANG}.po exists, merging"
${MSGMERGE} -o ${PO_LANG}.po.new ${PO_LANG}.po ${PO_LANG}.po.tmp ; \ ${MSGMERGE} -o ${PO_LANG}.po.new ${PO_LANG}.po ${PO_LANG}.po.tmp
${MSGATTRIB} --no-obsolete -o ${PO_LANG}.po.new ${PO_LANG}.po ; \ ${MSGATTRIB} --no-obsolete -o ${PO_LANG}.po.new ${PO_LANG}.po
${MV} ${PO_LANG}.po.new ${PO_LANG}.po ; \ ${MV} ${PO_LANG}.po.new ${PO_LANG}.po
${RM} ${PO_LANG}.po.tmp ${DOC}.translate.xml ; \ ${RM} ${PO_LANG}.po.tmp ${DOC}.translate.xml
else \ .else
${ECHO} "${PO_LANG}.po created, please check and correct the settings in the header" ; \ ${ECHO} "${PO_LANG}.po created, please check and correct the settings in the header"
${MV} ${PO_LANG}.po.tmp ${PO_LANG}.po ; \ ${MV} ${PO_LANG}.po.tmp ${PO_LANG}.po
${POSET_CMD} ${.TARGET} ; \ ${POSET_CMD} ${.TARGET}
fi ) .endif
${PO_LANG}.mo: ${PO_LANG}.po ${PO_LANG}.mo: ${PO_LANG}.po
@${MSGFMT} -o ${.TARGET} ${.ALLSRC} @${MSGFMT} -o ${.TARGET} ${.ALLSRC}