Blame doxygen-obsolete-egrep.patch

Than Ngo cc385e
--- doxygen-1.9.6.orig/templates/latex/latexmakefile.tpl	2023-03-09 10:29:08.772377871 +0100
Than Ngo cc385e
+++ doxygen-1.9.6/templates/latex/latexmakefile.tpl	2023-03-09 10:29:23.754555476 +0100
Than Ngo cc385e
@@ -9,7 +9,7 @@
Than Ngo cc385e
 {# TODO: generateBib #}
Than Ngo cc385e
 	pdflatex refman
Than Ngo cc385e
 	latex_count=8 ; \
Than Ngo cc385e
-	while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\
Than Ngo cc385e
+	while grep -E -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\
Than Ngo cc385e
 	    do \
Than Ngo cc385e
 	      echo "Rerunning latex...." ;\
Than Ngo cc385e
 	      pdflatex refman ;\
Than Ngo cc385e
@@ -43,7 +43,7 @@
Than Ngo cc385e
 	echo "Rerunning latex...."
Than Ngo cc385e
 	{{ config.LATEX_CMD_NAME }} refman.tex
Than Ngo cc385e
 	latex_count=8 ; \
Than Ngo cc385e
-	while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\
Than Ngo cc385e
+	while grep -E -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\
Than Ngo cc385e
 	    do \
Than Ngo cc385e
 	      echo "Rerunning latex...." ;\
Than Ngo cc385e
 	      {{ config.LATEX_CMD_NAME }} refman.tex ;\
Than Ngo cc385e
--- doxygen-1.9.6.orig/src/latexgen.cpp	2023-03-09 11:10:52.092688592 +0100
Than Ngo cc385e
+++ doxygen-1.9.6/src/latexgen.cpp	2023-03-09 11:11:07.666867516 +0100
Than Ngo cc385e
@@ -346,7 +346,7 @@
Than Ngo cc385e
     t << "\techo \"Rerunning latex....\"\n"
Than Ngo cc385e
       << "\t$(LATEX_CMD) $(MANUAL_FILE).tex\n"
Than Ngo cc385e
       << "\tlatex_count=$(LATEX_COUNT) ; \\\n"
Than Ngo cc385e
-      << "\twhile egrep -s 'Rerun (LaTeX|to get cross-references right|to get bibliographical references right)' $(MANUAL_FILE).log && [ $$latex_count -gt 0 ] ;\\\n"
Than Ngo cc385e
+      << "\twhile grep -E -s 'Rerun (LaTeX|to get cross-references right|to get bibliographical references right)' $(MANUAL_FILE).log && [ $$latex_count -gt 0 ] ;\\\n"
Than Ngo cc385e
       << "\t    do \\\n"
Than Ngo cc385e
       << "\t      echo \"Rerunning latex....\" ;\\\n"
Than Ngo cc385e
       << "\t      $(LATEX_CMD) $(MANUAL_FILE).tex ; \\\n"
Than Ngo cc385e
@@ -374,7 +374,7 @@
Than Ngo cc385e
     }
Than Ngo cc385e
     t << "\t$(LATEX_CMD) $(MANUAL_FILE)\n"
Than Ngo cc385e
       << "\tlatex_count=$(LATEX_COUNT) ; \\\n"
Than Ngo cc385e
-      << "\twhile egrep -s 'Rerun (LaTeX|to get cross-references right|to get bibliographical references right)' $(MANUAL_FILE).log && [ $$latex_count -gt 0 ] ;\\\n"
Than Ngo cc385e
+      << "\twhile grep -E -s 'Rerun (LaTeX|to get cross-references right|to get bibliographical references right)' $(MANUAL_FILE).log && [ $$latex_count -gt 0 ] ;\\\n"
Than Ngo cc385e
       << "\t    do \\\n"
Than Ngo cc385e
       << "\t      echo \"Rerunning latex....\" ;\\\n"
Than Ngo cc385e
       << "\t      $(LATEX_CMD) $(MANUAL_FILE) ;\\\n"