--- doc/Makefile.am.orig 2019-02-23 16:40:11 UTC
+++ doc/Makefile.am
@@ -68,8 +68,8 @@ man-page-build: man-page-start
echo ' ' >> $(top_builddir)/doc/insert_file ;\
## Create and Update the DoxygenLayout.xml file
$(DOXYGEN) -l ;\
- $(SED) -i 's/Name^NAME
^g' $(top_builddir)/doc/man_html/$${BASE}.html ;\
- $(SED) -i 's^Synopsis
^SYNOPSIS
^g' $(top_builddir)/doc/man_html/$${BASE}.html ;\
+ $(SED) -i '' 's^Name
^NAME
^g' $(top_builddir)/doc/man_html/$${BASE}.html ;\
+ $(SED) -i '' 's^Synopsis
^SYNOPSIS
^g' $(top_builddir)/doc/man_html/$${BASE}.html ;\
else \
echo "ERROR: $(top_builddir)/man/$${BASE}.html not found!";\
exit 1 ;\
@@ -87,7 +87,7 @@ man-page-build: man-page-start
EBASE=`basename $${ENTRY} | cut -d . -f1` ;\
MANUAL=`egrep -B 1 "^====" $${ENTRY} | head -1` ;\
SECTION=`echo $${MANUAL} | cut -d\( -f2 | cut -d\) -f1` ;\
- $(SED) -i "s^$${EBASE}($${SECTION})^$${EBASE}($${SECTION})^g" $(top_builddir)/doc/man_html/$${BASE}.html ;\
+ $(SED) -i '' "s^$${EBASE}($${SECTION})^$${EBASE}($${SECTION})^g" $(top_builddir)/doc/man_html/$${BASE}.html ;\
done ;\
echo "finalized addition $${BASE}.html" ;\
done