diff options
author | Shinnok <admin@shinnok.com> | 2017-12-06 13:16:05 +0100 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2017-12-06 13:27:09 +0100 |
commit | c09e0355995d329cbd0c60ff7e6008c0f06b45df (patch) | |
tree | 71bc271a7f0ce4689a6a96f26db258271489fe90 | |
parent | 0b1c7e3c53f36b36f304270fd7aa455321dfd8fe (diff) |
Merge makelocal and makeonline into single script.
Scripts were identical; only difference is whether we pass
local yes/no to get_html.sh. Choice is now expressed via
first param to makehelp.sh; build local is default.
Change-Id: Icbe274fe6d9aeb86c7950aa69daf574e271e3b84
Reviewed-on: https://gerrit.libreoffice.org/45943
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
-rwxr-xr-x | help3xsl/makehelp.sh (renamed from help3xsl/makelocal.sh) | 13 | ||||
-rwxr-xr-x | help3xsl/makeonline.sh | 24 |
2 files changed, 12 insertions, 25 deletions
diff --git a/help3xsl/makelocal.sh b/help3xsl/makehelp.sh index b455a5ba74..c2590cc745 100755 --- a/help3xsl/makelocal.sh +++ b/help3xsl/makehelp.sh @@ -6,16 +6,27 @@ # 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 + productVersion=6.0 workDir=$(realpath '../../workdir') langDirSource=$workDir'/HelpTranslatePartTarget' +offline=$1 + +if [ -z $offline ] +then +offline=yes +fi ./get_hid2file.sh $productVersion $workDir for lang in $(ls $langDirSource) do ./get_bookmark.sh $lang $productVersion $workDir -./get_html.sh $lang $productVersion $workDir 'yes' '/' +./get_html.sh $lang $productVersion $workDir $offline '/' ./get_tree.sh $lang $productVersion $workDir done diff --git a/help3xsl/makeonline.sh b/help3xsl/makeonline.sh deleted file mode 100755 index 90813de2e3..0000000000 --- a/help3xsl/makeonline.sh +++ /dev/null @@ -1,24 +0,0 @@ -#/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/. - -productVersion=6.0 -workDir=$(realpath '../../workdir') -langDirSource=$workDir'/HelpTranslatePartTarget' - -./get_hid2file.sh $productVersion $workDir - -for lang in $(ls $langDirSource) -do -./get_bookmark.sh $lang $productVersion $workDir -./get_html.sh $lang $productVersion $workDir 'no' '/' -./get_tree.sh $lang $productVersion $workDir -done - -./get_media.sh 'dummy' $productVersion $workDir - -exit |