aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/gentoo/ebuild/utils/getfsize
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/gentoo/ebuild/utils/getfsize')
-rwxr-xr-xpaludis/repositories/gentoo/ebuild/utils/getfsize5
1 files changed, 5 insertions, 0 deletions
diff --git a/paludis/repositories/gentoo/ebuild/utils/getfsize b/paludis/repositories/gentoo/ebuild/utils/getfsize
new file mode 100755
index 0000000..38a271b
--- /dev/null
+++ b/paludis/repositories/gentoo/ebuild/utils/getfsize
@@ -0,0 +1,5 @@
+#!/bin/bash
+case $(uname -s) in
+ FreeBSD) stat -f '%z' "$@" ;;
+ *) stat -c '%s' "$@" ;;
+esac