#!/bin/bash # 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/. # # This tool generates full update packages for the update system. # Author: Darin Fisher # . $(dirname "$0")/common.sh # ----------------------------------------------------------------------------- print_usage() { notice "Usage: $(basename $0) [OPTIONS] ARCHIVE DIRECTORY" } if [ $# = 0 ]; then print_usage exit 1 fi if [ $1 = -h ]; then print_usage notice "" notice "The contents of DIRECTORY will be stored in ARCHIVE." notice "" notice "Options:" notice " -h show this help text" notice "" exit 1 fi # ----------------------------------------------------------------------------- archive="$1" targetdir="$2" # Prevent the workdir from being inside the targetdir so it isn't included in # the update mar. if [ $(echo "$targetdir" | grep -c '\/$') = 1 ]; then # Remove the / targetdir=$(echo "$targetdir" | sed -e 's:\/$::') fi workdir="$targetdir.work" updatemanifestv2="$workdir/updatev2.manifest" updatemanifestv3="$workdir/updatev3.manifest" targetfiles="updatev2.manifest updatev3.manifest" mkdir -p "$workdir" # Generate a list of all files in the target directory. pushd "$targetdir" if test $? -ne 0 ; then exit 1 fi # if [ ! -f "precomplete" ]; then # if [ ! -f "Contents/Resources/precomplete" ]; then # notice "precomplete file is missing!" # exit 1 # fi # fi list_files files popd # Add the type of update to the beginning of the update manifests. > $updatemanifestv2 > $updatemanifestv3 notice "" notice "Adding type instruction to update manifests" notice " type complete" echo "type \"complete\"" >> $updatemanifestv2 echo "type \"complete\"" >> $updatemanifestv3 notice "" notice "Adding file add instructions to update manifests" num_files=${#files[*]} for ((i=0; $i<$num_files; i=$i+1)); do f="${files[$i]}" if check_for_add_if_not_update "$f"; then make_add_if_not_instruction "$f" "$updatemanifestv3" if check_for_add_to_manifestv2 "$f"; then make_add_instruction "$f" "$updatemanifestv2" "" 1 fi else make_add_instruction "$f" "$updatemanifestv2" "$updatemanifestv3" fi dir=$(dirname "$f") mkdir -p "$workdir/$dir" $BZIP2 -cz9 "$targetdir/$f" > "$workdir/$f" copy_perm "$targetdir/$f" "$workdir/$f" targetfiles="$targetfiles \"$f\"" done # Append remove instructions for any dead files. notice "" notice "Adding file and directory remove instructions from file 'removed-files'" append_remove_instructions "$targetdir" "$updatemanifestv2" "$updatemanifestv3" $BZIP2 -z9 "$updatemanifestv2" && mv -f "$updatemanifestv2.bz2" "$updatemanifestv2" $BZIP2 -z9 "$updatemanifestv3" && mv -f "$updatemanifestv3.bz2" "$updatemanifestv3" eval "$MAR -C \"$workdir\" -c output.mar $targetfiles" mv -f "$workdir/output.mar" "$archive" # cleanup rm -fr "$workdir" notice "" notice "Finished" notice "" enkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com> Remove obsolete (cargo-cult copied) dependencies 2018-06-25T02:00:19+00:00 Jens Carl j.carl43@gmx.de 2018-06-24T22:55:58+00:00 d6f66fd08b9950a9af96a7745266e5003e3c8a32 Change-Id: I5dea60a3833802473c133ef3060183c3ed790f6f Reviewed-on: https://gerrit.libreoffice.org/56365 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
Change-Id: I5dea60a3833802473c133ef3060183c3ed790f6f
Reviewed-on: https://gerrit.libreoffice.org/56365
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
extract common components to one place for sc unoapi tests 2018-03-11T22:53:31+00:00 Tomaž Vajngerl tomaz.vajngerl@collabora.co.uk 2018-03-11T14:45:38+00:00 cab04bc39b5164ea74216cd849c3af5f5b298f79 The declared components in a test of uno api don't change much or at all, so instead of duplicating this in every test, define it in a common file use when needed. Some more common things could be extracted in a similar way. Change-Id: I07ae641afca55ffaf3c5c93624bfaa2143590886 Reviewed-on: https://gerrit.libreoffice.org/51079 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
The declared components in a test of uno api don't change much
or at all, so instead of duplicating this in every test, define
it in a common file use when needed. Some more common things
could be extracted in a similar way.

Change-Id: I07ae641afca55ffaf3c5c93624bfaa2143590886
Reviewed-on: https://gerrit.libreoffice.org/51079
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Move (and rename) graphic stuff from svtools to vcl 2018-03-11T12:37:21+00:00 Tomaž Vajngerl tomaz.vajngerl@collabora.co.uk 2018-03-11T02:16:34+00:00 7fbb96c2fbf99c47eca6f493f54fc3974f55cf86 This is preparing to change how GraphicManager works where it won't base itself around GraphicObject anymore but Graphic. No functional or cosmetic change was made to the classes, only changes that were needed because of the move and rename. The only thing that wasn't moved is the GraphicRenderer as it is not needed in vcl for now (but makes sense to move it in the future to keep graphic stuff together). grfmgr was renamed to GraphicObject as the GraphicManager will be changed a lot and most likely moved out, so the name grfmgr won't make any sense anymore. All the UNO implementations were renamed with a prefix Uno and used the same name as the class name. This is made to be more specific which are the Uno objects (for example graphic.cxx contained the implementation of XGraphic, which is similar to graph.cxx contains Graphic). Change-Id: I54a2fa6c7e997469aaa7770db05244adb9f64137 Reviewed-on: https://gerrit.libreoffice.org/51068 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
This is preparing to change how GraphicManager works where it
won't base itself around GraphicObject anymore but Graphic. No
functional or cosmetic change was made to the classes, only
changes that were needed because of the move and rename.

The only thing that wasn't moved is the GraphicRenderer as it
is not needed in vcl for now (but makes sense to move it in the
future to keep graphic stuff together).

grfmgr was renamed to GraphicObject as the GraphicManager will be
changed a lot and most likely moved out, so the name grfmgr won't
make any sense anymore.

All the UNO implementations were renamed with a prefix Uno and
used the same name as the class name. This is made to be more
specific which are the Uno objects (for example graphic.cxx
contained the implementation of XGraphic, which is similar to
graph.cxx contains Graphic).

Change-Id: I54a2fa6c7e997469aaa7770db05244adb9f64137
Reviewed-on: https://gerrit.libreoffice.org/51068
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
gbuild: Remove MSVC 2013 legacy code 2017-04-21T16:18:44+00:00 David Ostrovsky david@ostrovsky.org 2017-03-04T13:36:08+00:00 de030cd7a234fd9191364647deb1a4836ca992cb 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>
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>
tdf#103274: Add default XCommandEnvironment reference 2016-10-17T14:48:09+00:00 Giuseppe Castagno giuseppe.castagno@acca-esse.eu 2016-10-16T08:17:55+00:00 1c304b206e77f19fcca2cf61a854100c28196e7b Change-Id: I4c9e4945e9fd4bb4fc2fe29e5a2a800cc5f298ae Reviewed-on: https://gerrit.libreoffice.org/29966 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
Change-Id: I4c9e4945e9fd4bb4fc2fe29e5a2a800cc5f298ae
Reviewed-on: https://gerrit.libreoffice.org/29966
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
tdf#45904 Move java XViewPane test to c++ 2016-04-27T00:28:03+00:00 Fabio Buso dev.siroibaf@gmail.com 2016-04-21T20:45:51+00:00 e7f55f15ccd97bc92e1400bc5862171a621da3e2 Change-Id: I3c99fb4c611a3b45d31412731c548b59e95d7179 Reviewed-on: https://gerrit.libreoffice.org/24285 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Change-Id: I3c99fb4c611a3b45d31412731c548b59e95d7179
Reviewed-on: https://gerrit.libreoffice.org/24285
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>