summaryrefslogtreecommitdiffstats
path: root/help3xsl/makehelp.sh
blob: 60e07d8145b3183185292f4be59bdd5ca8d46f34 (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#/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/.

# Arguments

# $1 build local or webroot help [default=yes]
# values: yes no
# $2 build english help [default=no]
# values: yes no

productVersion=6.0
workDir=$(realpath '../../workdir')
langDirSource=$workDir'/HelpTranslatePartTarget'
offline="yes"

if [ $1 == "no" ]
then
offline="no"
fi

if [ $2 == "yes" ]
then
mkdir -p $langDirSource/en-US/helpcontent2/source
cp -r ../source/text $langDirSource/en-US/helpcontent2/source/
for i in sbasic  scalc  schart  shared  simpress  smath  swriter
do
cp "../source/auxiliary/$i.tree" "$workDir/HelpTreeTarget/$i/en-US.tree"
done
fi

./get_hid2file.sh $productVersion $workDir

for lang in $(ls $langDirSource)
do
./get_bookmark.sh $lang $productVersion $workDir
./get_html.sh $lang $productVersion $workDir $offline '/'
./get_tree.sh $lang $productVersion $workDir
done

./get_media.sh 'dummy' $productVersion $workDir

exit