Blame SOURCES/expat-2.2.5-doc2man.patch

bfa566
diff -uap libexpat-R_2_2_5/expat/configure.ac.doc2man libexpat-R_2_2_5/expat/configure.ac
bfa566
--- libexpat-R_2_2_5/expat/configure.ac.doc2man
bfa566
+++ libexpat-R_2_2_5/expat/configure.ac
bfa566
@@ -241,7 +241,7 @@ AS_IF([test "x$with_docbook" != xno],
bfa566
   [if test "x$with_docbook" != xcheck; then 
bfa566
     AC_MSG_ERROR([Required program 'docbook2x-man' not found.])])])
bfa566
 
bfa566
-AM_CONDITIONAL(WITH_DOCBOOK, [test x${DOCBOOK_TO_MAN} != x])
bfa566
+AM_CONDITIONAL(WITH_DOCBOOK, [test "x${DOCBOOK_TO_MAN}" != x])
bfa566
 
bfa566
 AC_CONFIG_FILES([Makefile expat.pc])
bfa566
 AC_CONFIG_FILES([
bfa566
diff -uap libexpat-R_2_2_5/expat/doc/Makefile.am.doc2man libexpat-R_2_2_5/expat/doc/Makefile.am
bfa566
--- libexpat-R_2_2_5/expat/doc/Makefile.am.doc2man
bfa566
+++ libexpat-R_2_2_5/expat/doc/Makefile.am
bfa566
@@ -32,8 +32,9 @@ dist_man_MANS = xmlwf.1
bfa566
 
bfa566
 xmlwf.1: xmlwf.xml
bfa566
 if WITH_DOCBOOK
bfa566
+	-rm -f $@
bfa566
 	$(DOCBOOK_TO_MAN) $<
bfa566
-	mv XMLWF.1 $@
bfa566
+	test -f $@ || mv XMLWF.1 $@
bfa566
 else
bfa566
 	@echo 'ERROR: Configure with --with-docbook for "make dist".' 1>&2
bfa566
 	@false