diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-01-26 09:46:22 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-01-26 12:48:52 +0100 |
commit | 482fb2a966c3cfde24d94d7f43768b8edf63ceca (patch) | |
tree | 7560d967f0dfe9c32e516f68aecba426909e5fe3 | |
parent | 67a993c05d19976f5ed347b16584d29d6866a870 (diff) |
Adjust online builder xhp2html.sh to new bookmarks
Change-Id: Ie3a211d7247acd0ef7c15266368d9db7e1c8f232
Reviewed-on: https://gerrit.libreoffice.org/48681
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
-rwxr-xr-x | help3xsl/xhp2html.sh | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/help3xsl/xhp2html.sh b/help3xsl/xhp2html.sh index d196625f2b..919aa63f25 100755 --- a/help3xsl/xhp2html.sh +++ b/help3xsl/xhp2html.sh @@ -35,6 +35,8 @@ rm -f $bookmarkFile touch $bookmarkFile stub2=\' +stub1='document.getElementById("Bookmarks").getElementsByClassName( "list" )[0].innerHTML='\'\\ +echo $stub1 >> $bookmarkFile xslfile=get_bookmark.xsl @@ -42,43 +44,35 @@ param1=' --stringparam Language '$lang' --stringparam productversion '$productve # bookmarks for modules -for i in CALC CHART WRITER DRAW IMPRESS MATH BASIC +for i in WRITER CALC DRAW IMPRESS CHART MATH BASIC do -stub1='document.getElementById("bookmark'$i'").innerHTML='\'\\ sfind=$sourceDir'/'$(echo 'text/s'$i | tr '[:upper:]' '[:lower:]') param=$param1' --stringparam app '$i tempFile=$(mktemp) find $sfind -type f -name "*.xhp" -exec xsltproc $param $xslfile {} + >> $tempFile -echo $stub1 >> $bookmarkFile sort -k3b -t\> -s -o $tempFile $tempFile awk 'NF' $tempFile >> $bookmarkFile -echo $stub2 >> $bookmarkFile rm -f $tempFile done # Case of SHARED -stub1='document.getElementById("bookmarkSHARED").innerHTML='\'\\ tempFile=$(mktemp) param=$param1' --stringparam app SHARED' find $sourceDir'/text/shared' -type f -name "*.xhp" -exec xsltproc $param $xslfile {} + >> $tempFile -echo $stub1 >> $bookmarkFile sort -k3b -t\> -s -o $tempFile $tempFile awk 'NF' $tempFile >> $bookmarkFile -echo $stub2 >> $bookmarkFile rm -f $tempFile # Case of Explorer (BASE) -stub1='document.getElementById("bookmarkBASE").innerHTML='\'\\ tempFile=$(mktemp) param=$param1' --stringparam app BASE' find $sourceDir'/text/shared/explorer/database' -type f -name "*.xhp" -exec xsltproc $param $xslfile {} + >> $tempFile -echo $stub1 >> $bookmarkFile sort -k3b -t\> -s -o $tempFile $tempFile awk 'NF' $tempFile >> $bookmarkFile -echo $stub2 >> $bookmarkFile rm -f $tempFile +echo $stub2 >> $bookmarkFile } |