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 94096698e72e9930b0bbd5fc0f2cba9e5cc09663..6ef0b570d9e6302680a2278b580b1cec03a1b026 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'''
                             )