#/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/. # # Convert localized XHP files and TREE files to HTML. # # Syntax: convert2html tarball productversion source # # Example # ./convert2html.sh buildtargets_5403.tar.gz 5.4 libreoffice-help-5.4.0.3.tar.xz # # This script convert localized XHP and TREE files available as tarballs into # a set of html pages. # # Conversion is done by listing the available languages in the tarball and # execting the XSLT transformations on each XHP and tree files. # # Note: tarball, source and productversion must match. # # Special case for converting en-US XHP files to HTML. The en-US source is # taken from the published helpcontent2 source tarball. # # companion files are moved to the right position in the html folder # Media files are added too. # function getBookmark() { ########################################### # Extract from each XHP files and build a