summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2011-04-11 16:03:24 +0200
committerPetr Mladek <pmladek@suse.cz>2011-04-11 16:04:35 +0200
commit81b92021673b6f9bd72ddddce57af3bccbbf8251 (patch)
tree9fcc76f6f4eb05d19463ce7f7879a7fa53965266 /bin
parentd19b273b6b873ffe145066e4f9eeed4ab0fc5517 (diff)
lo-pack-sources: generate bootstrap.ver profile
FIXME: we should find another way to tell dowload the right version of used sources
Diffstat (limited to 'bin')
-rwxr-xr-xbin/lo-pack-sources13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/lo-pack-sources b/bin/lo-pack-sources
index 5504aad83ad1..26ac6c1fc94d 100755
--- a/bin/lo-pack-sources
+++ b/bin/lo-pack-sources
@@ -235,6 +235,18 @@ sub run_autoreconf($$)
"cd - >/dev/null 2>&1") && die "Error: autoreconf failed: $!\n";
}
+sub generate_version_file($$$)
+{
+ my ($dir, $piece, $release_version) = @_;
+
+ # FIXME: crazy hacks to copy libreoffice-build without too big and useless subdirectories and to show a progress
+ open (VERFILE, ">$dir/$piece.ver") || die "Can't open $dir/lo-$piece.ver: $!\n";
+
+ print VERFILE "lo_bootstrap_ver=$release_version\n";
+
+ close VERFILE;
+}
+
sub release_lo_build($)
{
my ($lo_build_dir) = @_;
@@ -419,6 +431,7 @@ sub prepare_lo_piece_tarball($$$$$)
my $temp_dir = copy_lo_piece_to_tempdir($piece_dir, $piece, $piece_tarball_name);
generate_lo_piece_changelog($piece_dir, "$temp_dir/$piece_tarball_name", $piece);
run_autoreconf("$temp_dir/$piece_tarball_name", $piece) if ($piece eq 'bootstrap');
+ generate_version_file("$temp_dir/$piece_tarball_name", $piece, $release_version) if ($piece eq 'bootstrap');
release_lo_piece($temp_dir, $piece_tarball_name);
generate_md5($temp_dir, $piece_tarball_name, ".tar.bz2") if (defined $md5);