svn commit: r51110 - head/share/mk

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


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

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:38:11 2017	(r51109)
+++ head/share/mk/doc.translate.mk	Thu Oct 12 14:57:29 2017	(r51110)
@@ -65,17 +65,17 @@ po: ${PO_LANG}.po
 
 ${PO_LANG}.po:	${DOC}.translate.xml
 	@${ITSTOOL} -o ${PO_LANG}.po.tmp ${DOC}.translate.xml
-	@( if [ -f "${PO_LANG}.po" ]; then \
-		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 ; \
-	  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} ; \
-	  fi )
+.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
+.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} 
+.endif
 
 ${PO_LANG}.mo:	${PO_LANG}.po
 	@${MSGFMT} -o ${.TARGET} ${.ALLSRC}


More information about the svn-doc-all mailing list