#!/usr/bin/env 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/. # # take a .zip containing a flat hierarchy of odf files and strip out the # language and country tags in each of them and repack it all up # should convert templates so that documents based on them use # the default-document-language rather than the hardcoded lang-tag # # All a bit hacky, but it should work if [ -z "$CALLXSLTPROC" ]; then echo "$0: \$CALLXSLTPROC not defined!" echo "$0: Apparently we are not called from the build process, bailing out." exit 1 fi tempfoo=`basename $0` XSL=`mktemp /tmp/${tempfoo}.XXXXXX` if [ $? -ne 0 ]; then echo "$0: Can't create temp file, exiting..." exit 1 fi # On Windows, xsltproc is a non-Cygwin program, so we can't pass # a Cygwin /tmp path to it [ "$COM" == MSC ] && XSL=`cygpath -m -s $XSL` WRKDIR=`mktemp -d /tmp/${tempfoo}.XXXXXX` if [ $? -ne 0 ]; then echo "$0: Can't create temp dir, exiting..." exit 1 fi cat > $XSL << EOF EOF unzip -q $1 -d $WRKDIR pushd $WRKDIR for a in *; do unzip -qc $a styles.xml > styles.tmp eval "$CALLXSLTPROC -o styles.xml $XSL styles.tmp" zip -qr $a styles.xml rm styles.xml styles.tmp done popd zip -qrj $1 $WRKDIR rm -rf $WRKDIR rm -f $XSL ollabora/cd-5.3-3.2'>distro/collabora/cd-5.3-3.2 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/l10ntools/inc
AgeCommit message (Expand)Author
2020-01-14loplugin:finalclasses in i18npool..linguisticNoel Grandin
2019-12-03remove some useless comment linesNoel Grandin
2019-08-23Mark move ctors/assignments noexceptMike Kaganski
2019-08-12Fix typosAndrea Gelmini
2019-07-29Fix typosAndrea Gelmini
2019-03-18Remove broken MergeDataHashMap optimizationStephan Bergmann
2019-02-28loplugin:unreffunStephan Bergmann
2019-02-27loplugin:unusedfields look for classes where we can make all the..Noel Grandin
2019-02-23loplugin:unusedfields in l10ntools..saxNoel Grandin
2018-11-23remove unused enums in reportdesign,linguistic,l10ntools,vcl,svxNoel Grandin
2018-11-17pocheck: don't throw away Plural-Forms headerChristian Lohmaier
2018-10-31loplugin:useuniqueptr in l10ntoolsNoel Grandin
2018-10-08l10ntools: remove unused srclexAndras Timar
2018-09-30pocheck: we need to access msgctxt of a PO entryAndras Timar
2018-07-27l10ntools: avoid -Werror=deprecated-copy (GCC trunk towards GCC 9)Stephan Bergmann
2018-07-26loplugin:returnconstant in sal,l10ntools,sotNoel Grandin
2018-07-23Fix typosAndrea Gelmini