From 149839c5391e9a93465f86dbb8d095a0150d755d Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Mon, 26 May 2008 23:46:01 +0200 Subject: du -b is not available on BSD, use du -k instead. This fixes FS#10459. There is apparently no portable ways to get the apparent size of a file, like du -b does. So the best compromise seems to get the block size in kB, and then convert that to byte so that we keep compatibility. Signed-off-by: Xavier Chantry Signed-off-by: Dan McGee --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/makepkg.sh.in') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 273bc0ab..9587756a 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -779,7 +779,7 @@ create_package() { else local packager="Unknown Packager" fi - local size=$(du -sb | awk '{print $1}') + local size=$(du -sk | awk '{print $1 * 1024}') # write the .PKGINFO file msg2 "$(gettext "Generating .PKGINFO file...")" -- cgit v1.2.3