[Libreoffice-commits] help.git: help3xsl/makehelp.sh

Shinnok admin at shinnok.com
Wed Dec 6 17:46:04 UTC 2017


 help3xsl/makehelp.sh |   18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

New commits:
commit fb2f695bb4ad8ed6a9eeef0e155526df169796f3
Author: Shinnok <admin at shinnok.com>
Date:   Wed Dec 6 17:49:42 2017 +0100

    Add option to build en-US too.
    
    This case required manual copy of the xhp's and tree.
    
    Change-Id: Ibde9e0e70f9d27735cc0b89bab8eeb34d17c5fdc
    Reviewed-on: https://gerrit.libreoffice.org/45968
    Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>
    Tested-by: Olivier Hallot <olivier.hallot at libreoffice.org>

diff --git a/help3xsl/makehelp.sh b/help3xsl/makehelp.sh
index c2590cc74..60e07d814 100755
--- a/help3xsl/makehelp.sh
+++ b/help3xsl/makehelp.sh
@@ -10,15 +10,27 @@
 
 # $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=$1
+offline="yes"
+
+if [ $1 == "no" ]
+then
+offline="no"
+fi
 
-if [ -z $offline ]
+if [ $2 == "yes" ]
 then
-offline=yes
+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


More information about the Libreoffice-commits mailing list