pacman/scripts/libmakepkg/util/meson.build
Eli Schwartz 0272fca993 makepkg: do not count hard links multiple times when calculating pkg size
Exclude files with hardlinks when cat'ing all the files, and do a second
run to look at each file with hardlinks, keep track of the ones we've
already operated on, and only cat each inode once. Then use "wc -c" to get
the size of all (deduplicated) files the same way we were already doing.

Original-patch-by: Ronan Pigott <rpigott@berkeley.edu>
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2019-10-30 10:03:46 +10:00

27 lines
576 B
Meson

libmakepkg_module = 'util'
sources = [
'compress.sh.in',
'config.sh.in',
'dirsize.sh.in'
'error.sh.in',
'message.sh.in',
'option.sh.in',
'parseopts.sh.in',
'pkgbuild.sh.in',
'schema.sh.in',
'source.sh.in',
'util.sh.in',
]
foreach src : sources
output_dir = join_paths(get_option('datadir'), 'makepkg', libmakepkg_module)
custom_target(
libmakepkg_module + '_' + src.underscorify(),
command : [ SCRIPT_EDITOR, '@INPUT@', '@OUTPUT@' ],
input : src,
output : '@BASENAME@',
install : true,
install_dir : output_dir)
endforeach