summaryrefslogtreecommitdiff
path: root/net/libcoap/files/patch-doc_Makefile.am
blob: 88c6d97839daee20f4a08e2c0e8593e431122a22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- doc/Makefile.am.orig	2021-06-21 08:39:42 UTC
+++ doc/Makefile.am
@@ -112,8 +112,8 @@ man-page-build: upg-page-build man-page-start
 	echo '    </tab>' >> $(top_builddir)/doc/insert_file ;\
 	## Create and Update the DoxygenLayout.xml file
 	$(DOXYGEN) -l ;\
-	$(SED) -i 's/<tab type="pages" visible="yes" /<tab type="pages" visible="no" /g' $(top_builddir)/doc/DoxygenLayout.xml ;\
-	$(SED) -i '/<tab type="examples" visible=.*/r insert_file' $(top_builddir)/doc/DoxygenLayout.xml ;\
+	$(SED) -i '' 's/<tab type="pages" visible="yes" /<tab type="pages" visible="no" /g' $(top_builddir)/doc/DoxygenLayout.xml ;\
+	$(SED) -i '' '/<tab type="examples" visible=.*/r insert_file' $(top_builddir)/doc/DoxygenLayout.xml ;\
 	$(RM) $(top_builddir)/doc/insert_file ;\
 	## Fix up man html files, fixing links, UC Name and Synopsis
 	for FILE in $${MAN_FILES} ; do \
@@ -121,8 +121,8 @@ man-page-build: upg-page-build man-page-start
 		if [ -f $(top_builddir)/man/$${BASE}.html ]; then \
 			cp -f $(top_builddir)/man/$${BASE}.html $(top_builddir)/doc/man_html/$${BASE}.html ;\
 			## Correct case sensitive Name and Synopsis
-			$(SED) -i 's^<h2>Name</h2>^<h2>NAME</h2>^g' $(top_builddir)/doc/man_html/$${BASE}.html ;\
-			$(SED) -i 's^<h2>Synopsis</h2>^<h2>SYNOPSIS</h2>^g' $(top_builddir)/doc/man_html/$${BASE}.html ;\
+			$(SED) -i '' 's^<h2>Name</h2>^<h2>NAME</h2>^g' $(top_builddir)/doc/man_html/$${BASE}.html ;\
+			$(SED) -i '' 's^<h2>Synopsis</h2>^<h2>SYNOPSIS</h2>^g' $(top_builddir)/doc/man_html/$${BASE}.html ;\
 		else \
 			echo "ERROR: $(top_builddir)/man/$${BASE}.html not found!";\
 			exit 1 ;\
@@ -131,7 +131,7 @@ man-page-build: upg-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^<span class=\"strong\"><strong>$${EBASE}</strong></span>($${SECTION})^<a href=\"man_$${EBASE}.html\" target=\"_self\"><span class=\"strong\"><strong>$${EBASE}</strong></span>($${SECTION})</a>^g" $(top_builddir)/doc/man_html/$${BASE}.html ;\
+			$(SED) -i '' "s^<span class=\"strong\"><strong>$${EBASE}</strong></span>($${SECTION})^<a href=\"man_$${EBASE}.html\" target=\"_self\"><span class=\"strong\"><strong>$${EBASE}</strong></span>($${SECTION})</a>^g" $(top_builddir)/doc/man_html/$${BASE}.html ;\
 		done ;\
 		echo "finalized addition $${BASE}.html" ;\
 	done