svn commit: r51110 - head/share/mk

Wolfram Schneider <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.