summaryrefslogtreecommitdiff
path: root/bin/lo-pack-sources
AgeCommit message (Collapse)AuthorFilesLines
2023-02-11lo-pack-sources: Add support for pbzip2.Sebastian Andrzej Siewior1-1/+15
Use pbzip for compression if possible. Otherwise fallback to bzip2. Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Change-Id: I9091c5dfe25ee00854b6938464af23b56cdcb31c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146814 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2023-02-11lo-pack-sources: Use threaded compression for xz.Sebastian Andrzej Siewior1-1/+13
The xz utility can compress in parallel by using more CPU cores. The more CPUs are available the quicker it gets. The option -T0 automatically detects the number of available CPUs and uses all of them. Additional benefit is that xz starting with v5.4 can decompress the archive using multiple CPUs as well. The parallel compression works by splitting the input in multiple blocks of equal size which are compressed in parallel. Since the state is not preserved / reuse across blocks, the compression gets a little worse: -6 255M (current default) -T0 261M -eT0 259M -7T0 251M -7eT0 249M -7 uses larger blocks and dictionary which requires more memory on the compressing and decompressing side vs the current default -6. The -e option spends some extra cycles and improves the compression a bit. Use parallel compression and spend some extra cycles. Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Change-Id: Ib69c4bc1996ddd52153b8ac27b653c21e3998a68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146793 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2023-02-11lo-pack-sources: Split archiver invocation away from tar.Sebastian Andrzej Siewior1-6/+6
Instead of passing --bzip2 or --xz invoke the compression program via a pipe. This make the replacement of compressor as well its options easier. Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Change-Id: Ib69c4bc1996ddd52153b8ac27b653c21e3998a67 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146105 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2017-08-17Fix typosAndrea Gelmini1-1/+1
Change-Id: Iaa9c0aea3ea1a239e378bd714ba335f91bb1faf3 Reviewed-on: https://gerrit.libreoffice.org/41194 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2017-03-29changelog creation: "command | > file" doesn't flyChristian Lohmaier1-1/+1
Change-Id: If270d509fbbad6a390ab61345bd1b14ead6ccc21
2017-01-17making portable sed statements is not worth the hassleChristian Lohmaier1-2/+2
change to git's own formatting capabilities by using the text-wrap option with only indent settings/no rewrapping → %w(0,8,8) and also omit the additional empty line when there only is a summary, but no body in the commit message (remove a %n, make it %+b) finally drop the now no-longer needed starmarker (the @) previous differences in sed caused unnecessarily large diffs for distro-packagers, see https://anonscm.debian.org/git/pkg-openoffice/libreoffice-dictionaries.git/commit/?h=upstream&id=3dceac52f75030e87519e73b42babde51e471d9f now it will change once, but then we can put all the blame on git :-) Change-Id: Ifa719d062582c54c9c23b4ae08d4bae9a396e83c
2016-11-15update lo-pack-sourcesjan Iversen1-4/+3
os-x has a problem with progress bar on tar Also remade to sed expression to a simpler one that osx understands. change change Change-Id: If09573760a4bedfa285519241582bbd639a4e976 Reviewed-on: https://gerrit.libreoffice.org/30043 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2015-06-15Fix typosAndrea Gelmini1-1/+1
Change-Id: Id05ea8cf8aed878bedfe73c274df3c67b64bad37 Reviewed-on: https://gerrit.libreoffice.org/16263 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2014-08-06fdo#82137 don't include working directory in tarballsChristian Lohmaier1-2/+2
as this changes permissions when extracting, and those are restrictive, since it is a temporary directory Change-Id: I41b28fe405e5915faeea944eb3cfdbed518ac55d
2013-01-22lo-pack-sources: run NOCONFIGURE=1 ./autogen.sh instead of autoreconfPetr Mladek1-5/+5
autogen.sh runs the needed tools with the right include paths Change-Id: Ia253b19566eeda31a1190a4fa7c543f7ffb63bfb
2012-11-19lo-pack-sources: use module instead of piecePetr Mladek1-65/+68
we use git submodules, so it makes more sense (hopefully) Replaced options: --no-lo-pieces with --no-submodule --piece=<piece> with --module=<module> Removed hopefully unused option: --no-lo-core Change-Id: Icbf742991ccda2f7833a5b50d51cb1421885383d
2012-11-19lo-pack-sources: use the same top-level directory in all tarballsPetr Mladek1-74/+73
It allows to avoid symlinks more easily. In addition, I did some clean up. I removed support for packing pieces from standalone checkout. I guess that noone is using it. Change-Id: I3c712f5eb12108229a157c636e0a63eca4ae0d6b
2012-11-16bin/lo-pack-sources: fix to work with submodulesPetr Mladek1-11/+20
I still want to use the same top level dir in all tarballs but not today :-) Change-Id: Iddbc8f91a84c4c73133a0eb4305d8aef7dc5c043
2012-11-09binfilter.die.die.dieNorbert Thiebaud1-1/+1
Change-Id: Ia3c103e4343d309b997ed37e33a382ffdfbddac3 Reviewed-on: https://gerrit.libreoffice.org/1014 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2012-06-12lo-pack-sources: correct check for valid libreoffice/core dirPetr Mladek1-1/+1
Change-Id: I8dbe60b85d0a330e3b2b5f54984b561fe9be05be
2012-04-16allow to download main source tarballs againPetr Mladek1-6/+5
The file "core.ver" was removed in configure together with other "core.*" files. It was ugly name. Better to use "sources.ver" and the variable "lo_sources_ver=..." The source version is not used in "unpack-sources", so do not source the .ver file at all. The source tarballs are put into "major.minor.micro" version subdirectory on the download site now.
2011-12-19lo-pack-sources: do not duplicate the generated files in the archive dirPetr Mladek1-83/+26
the storing in archive directory was non-standard solution => gets removed also the code was simplified and clean up a bit
2011-12-19lo-pack-sources: generate cleaner source tarballs using "git archive"Petr Mladek1-56/+8
there is not longer needed the manualy created blacklist of copied files; also no need to remove symlinks from clone subdir use "tar --checkpoint-action=exec="echo -n \".\"" instead of "awk '{ ORS=\"\" ; if (++nlines\%50 == 0) printf \".\"; fflush() }'"; we are interested into the return code from tar, e.g. not-enough disk space
2011-12-13lo-pack-sources: allow to generate .xz source tarballs by defaultPetr Mladek1-55/+79
Add --bzip2 and --xz options to select the compression. Both options can be used togetger to generate both types of tarballs in one call. XZ compession is used by default. Also renamed "lo*build" strings to "lo*core" to fit the current name of the top level source directory.
2011-12-03lo-pack-sources: unused function set_config_version()Miklos Vajna1-38/+0
2011-12-01typo fix: explicitely -> explicitlyLior Kaplan1-1/+1
2011-10-27lo-pack-sources: update for the current list of repositoriesPetr Mladek1-13/+14
2011-10-27lo-pack-sources: remove unused functionsMiklos Vajna1-60/+0
2011-09-18Remove config.parmsPeter Foley1-1/+0
The functionality provided by config.parms (saving the arguments given to configure) has been superseded by autogen.lastrun.
2011-07-25Change *Env.Set.sh to Env.Host.shTor Lillqvist1-1/+1
2011-05-25lo-pack-sources: do not pack fetched stuff into the source tarballPetr Mladek1-0/+4
2011-04-11lo-pack-sources: generate bootstrap.ver profilePetr Mladek1-0/+13
FIXME: we should find another way to tell dowload the right version of used sources
2011-04-11lo-pack-sources: new script to generate source tarballsPetr Mladek1-0/+638
based on libreoffice/build/bin/lo-pack-sources; still need some clean up