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