2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 use File
::Find
qw(finddepth);
15 # workdir/Dep/CxxObject/
18 # Concat these files and compare them with the output of
19 # `git ls-tree HEAD -r --name-only` and report files in the git ls-tree that aren't in the first.
25 # define a wanted function
27 return if($_ eq '.' || $_ eq '..' || -d
$_);
28 $tmp = basename
($File::Find
::name
);
29 # remove file extension ( .o )
31 $data{$tmp} = $File::Find
::name
;
34 finddepth
(\
&wanted
, 'workdir/Dep/CxxObject');
35 finddepth
(\
&wanted
, 'workdir/Dep/CObject');
37 my @gitfiles = `git ls-tree HEAD -r --name-only`;
39 # loop over found gitfiles
40 foreach my $file (@gitfiles){
41 if($file =~ /\.[hxx|h|c|cxx]$/){
42 $tmp = basename
($file);
45 if(!exists($data{$tmp})){