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