diff options
author | Shinnok <admin@shinnok.com> | 2017-12-06 17:49:42 +0100 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2017-12-06 18:44:31 +0100 |
commit | fb2f695bb4ad8ed6a9eeef0e155526df169796f3 (patch) | |
tree | 1ce4306a2cd77a835cef613a176e43e4e72c58e8 /help3xsl | |
parent | c09e0355995d329cbd0c60ff7e6008c0f06b45df (diff) |
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@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl')
-rwxr-xr-x | help3xsl/makehelp.sh | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/help3xsl/makehelp.sh b/help3xsl/makehelp.sh index c2590cc745..60e07d8145 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 |