summaryrefslogtreecommitdiff
path: root/help3xsl/makehelp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'help3xsl/makehelp.sh')
-rwxr-xr-xhelp3xsl/makehelp.sh18
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