summaryrefslogtreecommitdiffstats
path: root/help3xsl
diff options
context:
space:
mode:
authorShinnok <admin@shinnok.com>2017-12-06 13:16:05 +0100
committerOlivier Hallot <olivier.hallot@libreoffice.org>2017-12-06 13:27:09 +0100
commitc09e0355995d329cbd0c60ff7e6008c0f06b45df (patch)
tree71bc271a7f0ce4689a6a96f26db258271489fe90 /help3xsl
parenttdf#83269 Help page for Calc Data->Form... (diff)
downloadhelp-c09e0355995d329cbd0c60ff7e6008c0f06b45df.tar.gz
help-c09e0355995d329cbd0c60ff7e6008c0f06b45df.zip
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>
Diffstat (limited to 'help3xsl')
-rwxr-xr-xhelp3xsl/makehelp.sh (renamed from help3xsl/makelocal.sh)13
-rwxr-xr-xhelp3xsl/makeonline.sh24
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