#/bin/bash # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # ########################################### # # Create the file bookmarks.js containing the links between the # keywords found in and the html help page. # The file is used in the Index tab of the html help page # ########################################### # # $1 is Language # $2 is productversion # $3 is location of $(WORKDIR) lang=$1 productversion=$2 workDir=$(realpath $3) outDir=$(realpath $workDir/HelpTargetHTML/$productversion/$lang) sourceDir=$(realpath $workDir/HelpTranslatePartTarget/$lang/helpcontent2/source) bookmarkFile=$outDir/bookmarks.js mkdir -p $outDir rm -f $bookmarkFile touch $bookmarkFile stub2=\' xslfile=get_bookmark.xsl param1=' --stringparam Language '$lang' --stringparam productversion '$productversion # bookmarks for modules for i in CALC CHART WRITER DRAW IMPRESS 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 exit llabora/co-2021 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/stoc
AgeCommit message (Expand)Author
2016-11-18includes should be at the top of the fileNoel Grandin
2016-11-18remove some double callsNoel Grandin
2016-11-09make comphelper::containerToSequence a little smarterNoel Grandin
2016-11-02coverity#1375798 Uncaught exceptionCaolán McNamara
2016-10-27coverity#1374309 Uncaught exceptionCaolán McNamara
2016-10-27loplugin:expandablemethods in stoc..svlNoel Grandin
2016-10-26Java 7 DISPLAY and FORMAT locale and script fieldEike Rathke
2016-10-25Revert "Revert "Resolves: #i86470# Wrong Java locale when using "nl" and "fr"""Stephan Bergmann
2016-10-25Revert "Resolves: #i86470# Wrong Java locale when using "nl" and "fr""Eike Rathke
2016-10-25Resolves: #i86470# Wrong Java locale when using "nl" and "fr"Eike Rathke
2016-10-14loplugin:countusersofdefaultparams in sot..svtoolsNoel Grandin
2016-10-01Fix typosAndrea Gelmini
2016-09-15loplugin:singlevalfields in sc..vclNoel Grandin
2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann
2016-09-12loplugin:constantparam in package..stocNoel Grandin
2016-09-09loplugin:constantparam in sot..svlNoel Grandin
2016-08-25tdf#100726 - Improve readability of OUString concatanationsGökhan Gurbetoğlu
2016-08-05loplugin:countusersofdefaultparams in sfx2..svgioNoel Grandin
2016-07-27improve passstuffbyref return analysisNoel Grandin
2016-07-18don't write past the end of the arrayMarkus Mohrhard
2016-07-11loplugin:nullptr: Better heuristic to determine code shared between C and C++Stephan Bergmann
2016-07-07loplugin:passstuffbyref also for {css::uno,rtl}::ReferenceStephan Bergmann
2016-07-04remove deprecated Link functions from RegistryNoel Grandin
2016-06-21Clean up uses of Any::getValue() in stocStephan Bergmann
2016-06-19loplugin:salbool: Implicit conversions from non-Boolean fundamental typesStephan Bergmann
2016-06-06remove some manual ref-countingNoel Grandin
2016-05-30Some clean up of uses of css::uno::Any::setValueStephan Bergmann
2016-05-30Just use Any::operator <<= for sal_Unicode valuesStephan Bergmann
2016-05-24Revert "remove some manual ref-counting"Noel Grandin
2016-05-24remove some manual ref-countingNoel Grandin