On Mon, 6 Jan 2014, Jed Brown wrote:

> Satish Balay <[email protected]> writes:
> > Do you want this for only 'manpages' or all generated html?
> 
> I want it (somewhere unintrusive) for all HTML pages (generated or not).
> 

How about: http://ftp.mcs.anl.gov/pub/petsc/tmp/VecView.html

[perhaps 'MANUALPAGE' can be changed to 'documentation' - if we are doing this 
for all docs.]

Satish

diff --git a/makefile b/makefile
index 362c004..9de2ad2 100644
--- a/makefile
+++ b/makefile
@@ -335,11 +335,13 @@ docsetdate: chk_petscdir
         fi; \
         datestr=`git log -1 --pretty=format:%ci | cut -d ' ' -f 1`; \
         export datestr; \
+        typostr='   <div id="bugreport" align=right><a 
href="mailto:[email protected]?subject=Typo or Error in MANUALPAGE 
&body=Please describe the typo or error in the manual page">Report Typos and 
Errors</a></div>';\
+        export typostr; \
         find * -type d -wholename src/docs/website -prune -o -type d 
-wholename src/benchmarks/results -prune -o \
           -type d -wholename config/BuildSystem/docs/website -prune -o -type d 
-wholename include/web -prune -o \
           -type d -wholename 'arch-*' -prune -o -type d -wholename src/tops 
-prune -o -type d -wholename externalpackages -prune -o \
           -type f -wholename tutorials/multiphysics/tutorial.html -prune -o 
-type f -name \*.html \
-          -exec perl -pi -e 's^(<body.*>)^$$1\n   <div id=\"version\" 
align=right><b>$$ENV{petscversion} $$ENV{datestr}</b></div>^i' {} \; \
+          -exec perl -pi -e 's^(<body.*>)^$$1\n   <div id=\"version\" 
align=right><b>$$ENV{petscversion} $$ENV{datestr}</b></div>\n$$ENV{typostr}^i' 
{} \; \
           -exec perl -pi -e 's^(<head>)^$$1 <link rel="canonical" 
href="http://www.mcs.anl.gov/petsc/petsc-current/{}"; />^i' {} \; ; \
         echo "Done fixing version number, date, canonical URL info"

Reply via email to