#!/bin/env bash if [ -n "$debug" ] ; then set -x fi BIN_DIR=$(dirname "$0") CORE_DIR=$(realpath "$BIN_DIR/..") GEN_BZ2=false GEN_MD5=false GEN_XZ=false OUT_DIR="${CORE_DIR?}" VERSION= usage() { cat < ] [ --core-dir=.tar.[bz2|xz] EOF } while [ "${1}" != "" ]; do parm=${1%%=*} arg=${1#*=} has_arg= if [ "${1}" != "${parm?}" ] ; then has_arg=1 else arg="" fi # echo "parm=!${parm}!" # echo "arg=!${arg}!" case "${parm}" in -2|--bz2) GEN_BZ2=true ;; -x|--xz) GEN_XZ=true ;; -5|--md5) GEN_MD5=true ;; -o|--output-dir) if [ -z "${has_arg}" ] ; then shift; arg="$1" fi if [ -z "${arg}" ] ; then echo "Missing argument for option $parm" 1>&2 exit -1 else OUT_DIR="$arg" fi ;; -v|--version) if [ -z "${has_arg}" ] ; then shift; arg="$1" fi if [ -z "${arg}" ] ; then echo "Missing argument for option $parm" 1>&2 exit -1 else VERSION="$arg" fi ;; -h|--help) usage exit 0 ;; -*) echo "Invalid option $1" 1>&2 exit -1 ;; *) if [ -z "${LABEL}" ] ; then LABEL="$parm" else echo "Too many arguments.. $@" 1>&2 exit -1 fi ;; esac shift done # we need a label if [ -z "${LABEL}" ] ; then echo "Missing argument. We need a git label as source" 1>&2 exit 1 fi # default to xz compression if ! ${GEN_BZ2?} && ! ${GEN_XZ?} ; then GEN_XZ=true fi # --version= is mandatory if [ -z "${VERSION}" ] ; then VERSION="${LABEL?}" fi base_name="libreoffice-${VERSION}" # --output-dir default to core-dir if [ -z "${OUT_DIR}" ] ; then OUT_DIR="$CORE_DIR?}" fi if [ ! -d "${CORE_DIR?}" ] ; then echo "Core repo directory $CORE_DIR does not exist or is not a directory" 1>&2 exit 1 fi if [ ! -d "${CORE_DIR?}/.git" ] ; then echo "Core repo $CORE_DIR is not a git repo" 1>&2 exit 1 fi if [ ! -d "${OUT_DIR?}" ] ; then echo "Output directory $OUT_DIR does not exist or is not a directory" 1>&2 exit 1 fi pushd "${CORE_DIR}" > /dev/null echo "archiving core..." git archive --format=tar --prefix="${base_name?}" -o "${OUT_DIR}/${base_name}.tar" ${LABEL?} concatenate_list= for module in dictionaries helpcontent2 translations ; do if [ ! -f ${module?}/.git ] ; then echo "Warning: module $module is not present" 1>&2 else echo "archiving ${module?}..." git archive --format=tar --prefix="${base_name?}/${module?}" -o "${OUT_DIR}/${base_name}-${module?}.tar" ${LABEL?} concatenate_list="${concatenate_list?} ${OUT_DIR}/${base_name}-${module?}.tar" fi done if [ -n "${concatenate_list?}" ] ; then tar --concatenate --file="${OUT_DIR}/${base_name}.tar" ${concatenate_list?} rm ${concatenate_list?} fi if ${GEN_BZ2?} ; then echo "bzip2 compression..." bzip2 -fkz "${OUT_DIR}/${base_name}.tar" if ${GEN_MD5?} ; then echo "md5sum..." md5sum "${OUT_DIR}/${base_name}.tar.bz2" > "${OUT_DIR}/${base_name}.tar.bz2.md5" fi fi if ${GEN_XZ?} ; then echo "xz compression..." xz -fz "${OUT_DIR}/${base_name}.tar" if ${GEN_MD5?} ; then echo "md5sum..." md5sum "${OUT_DIR}/${base_name}.tar.xz" > "${OUT_DIR}/${base_name}.tar.zx.md5" fi else rm "${OUT_DIR}/${base_name}.tar" fi echo "Done." value='distro/collabora/cp-5.3'>distro/collabora/cp-5.3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-07-21migrate to boost::gettextCaolán McNamara
* all .ui files go from <interface> to <interface domain="MODULE"> e.g. vcl * all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string") * ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching MODULE .mo files * UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui goes from l10n target to normal one, so the res/lang.zips of UI files go away * translation via Translation::get(hrc-define-key, imbued-std::locale) * python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there to keep finding the .hrc file uniform) so magic numbers can go away there * java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation mechanism * en-US res files go away, their strings are now the .hrc keys in the source code * remaining .res files are replaced by .mo files * in .res/.ui-lang-zip files, the old scheme missing translations of strings results in inserting the english original so something can be found, now the standard fallback of using the english original from the source key is used, so partial translations shrink dramatically in size * extract .hrc strings with hrcex which backs onto xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap * extract .ui strings with uiex which backs onto xgettext --add-comments --no-wrap * qtz for gettext translations is generated at runtime as ascii-ified crc32 of content + "|" + msgid * [API CHANGE] remove deprecated binary .res resouce loader related uno apis com::sun::star::resource::OfficeResourceLoader com::sun::star::resource::XResourceBundleLoader com::sun::star::resource::XResourceBundle when translating strings via uno apis com.sun.star.resource.StringResourceWithLocation can continue to be used Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a
2017-04-21gbuild: Remove MSVC 2013 legacy codeDavid Ostrovsky
Uwinapi is discontinued. Change-Id: I063b4d0d8fab2d60de168e960a63b8181158ac01 Reviewed-on: https://gerrit.libreoffice.org/23198 Reviewed-by: David Ostrovsky <david@ostrovsky.org> Tested-by: David Ostrovsky <david@ostrovsky.org>
2016-07-28Revert "temp tinderbox fix"Caolán McNamara
This reverts commit d4cb9c3a8851cb874fd8b6c77d4d7521da7579b7. Change-Id: Ifd11427ea6b4137d0e0c007e7f140fbc6caa3f31
2016-06-09tdf#94698 cleanup Makefiles. Get rid of udkapi and offapiGleb Mishchenko
This patch changes occurences in makefiles from $(eval $(call gb_CppunitTest_use_api,comphelper_test_config, \ udkapi \ offapi \ )) to $(eval $(call gb_CppunitTest_use_sdk_api,comphelper_test_config)) (corrected instead of abandon, jani) Change-Id: Ic96ec65d82d7452e288f05a8b6d576ef543b068e Reviewed-on: https://gerrit.libreoffice.org/23426 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2015-06-22Add unit tests for chart2 trend calculatorsPhilippe Jung
Will be used to check tdf#70673 is fixed. Test will fail before the fix and should pass after. Change-Id: I9e0fdc696fb99ac2f0e24b04273391d526c629a6 Reviewed-on: https://gerrit.libreoffice.org/16406 Reviewed-by: Philippe Jung <phil.jung@free.fr> Tested-by: Philippe Jung <phil.jung@free.fr>