build: Remove bashism from SAMBAMANPAGES rule
authorAndrew Bartlett <abartlet@samba.org>
Tue, 8 Jan 2013 22:39:59 +0000 (09:39 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 10 Jan 2013 07:46:22 +0000 (18:46 +1100)
In sh, you must assign the variable, then export it.

Andrew Bartlett

Reviewed-by: Stefan Metzmacher <metze@samba.org>
buildtools/wafsamba/wafsamba.py

index 9409669..6ef0b57 100644 (file)
@@ -797,7 +797,8 @@ def SAMBAMANPAGES(bld, manpages):
                             source=source,
                             target=m,
                             group='final',
-                            rule='''export XML_CATALOG_FILES="${SAMBA_CATALOGS}"
+                            rule='''XML_CATALOG_FILES="${SAMBA_CATALOGS}"
+                                    export XML_CATALOG_FILES
                                     ${XSLTPROC} --xinclude --stringparam noreference 0 -o ${TGT}.xml --nonet ${SAMBA_EXPAND_XSL} ${SRC}
                                     ${XSLTPROC} --nonet -o ${TGT} ${SAMBA_MAN_XSL} ${TGT}.xml'''
                             )