Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Oct 2017 14:57:29 +0000 (UTC)
From:      Wolfram Schneider <wosch@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r51110 - head/share/mk
Message-ID:  <201710121457.v9CEvT1a035646@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710121457.v9CEvT1a035646>