From: Ronan Pigott <rpigott@berkeley.edu> V3 addresses eschwartz comment that leading trailing whitespace are not handled correctly. With these changes it is no longer necessary to modify INODECMD and other files that use it, so those changes have been removed and another patch can address them if necessary. Filenames that coincide with a valid stat flag option are now handled as well with a -- argument to stat. Ronan Pigott (1): makepkg: do not count hard linked file sizes multiple times scripts/Makefile.am | 1 + scripts/libmakepkg/util/dirsize.sh.in | 45 +++++++++++++++++++++++++++ scripts/libmakepkg/util/meson.build | 1 + scripts/makepkg.sh.in | 2 +- 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 scripts/libmakepkg/util/dirsize.sh.in -- 2.23.0