diff options
author | Rolf Koetter <rolf-koetter@gmx.de> | 2013-11-05 11:46:29 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-01-29 09:21:37 +0000 |
commit | 5ac84cb1658de7ebf3f1b52408bd0c56906dd510 (patch) | |
tree | b21502b24cd2118d9a90ff960a812cd5947aa9b6 /solenv/bin | |
parent | f46a685b27d1504dc050851d244a8a2ef3984ecf (diff) |
rebuild icon packs, if links.txt has been modified
Change-Id: I68df3ad8b79dbafdd795704bb66a31560a68a952
Reviewed-on: https://gerrit.libreoffice.org/6583
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'solenv/bin')
-rw-r--r-- | solenv/bin/packimages.pl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/solenv/bin/packimages.pl b/solenv/bin/packimages.pl index 3621f20470b9..d6231b3b9b4d 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); |