solenv/bin/packimages.pl | 11 +++++++++++ 1 file changed, 11 insertions(+)
New commits: commit 5ac84cb1658de7ebf3f1b52408bd0c56906dd510 Author: Rolf Koetter <rolf-koet...@gmx.de> Date: Tue Nov 5 11:46:29 2013 +0100 rebuild icon packs, if links.txt has been modified Change-Id: I68df3ad8b79dbafdd795704bb66a31560a68a952 Reviewed-on: https://gerrit.libreoffice.org/6583 Reviewed-by: Andras Timar <andras.ti...@collabora.com> Tested-by: Andras Timar <andras.ti...@collabora.com> diff --git a/solenv/bin/packimages.pl b/solenv/bin/packimages.pl index 3621f20..d6231b3 100644 --- a/solenv/bin/packimages.pl +++ b/solenv/bin/packimages.pl @@ -75,6 +75,17 @@ for my $path (@custom_path) { } check_links(\%links); +# rebuild if links.txt has been modified +for my $path (@custom_path) { + my $links_file = $path."/links.txt"; + if ((-e $links_file ) && ( -e $out_file )){ + if ((stat($out_file))[9] < (stat($links_file))[9]){ + $do_rebuild = 1; + print_message("$links_file has been modified.") if $verbose; + } + } +} + my $zip_hash_ref = create_zip_list($global_hash_ref, $module_hash_ref, $custom_hash_ref); remove_links_from_zip_list($zip_hash_ref, \%links); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits