aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ijar/test/testenv.sh
diff options
context:
space:
mode:
authorGravatar Doug Rabson <dfr@rabson.org>2015-08-25 14:12:00 +0000
committerGravatar Lukacs Berki <lberki@google.com>2015-08-26 07:37:57 +0000
commit709bc61850f031a08c602c653598e9c409c96856 (patch)
tree2a6f582386ead9c54e42a0d115518fb2270b2076 /third_party/ijar/test/testenv.sh
parent590ea39a05d66b44a459661898c34abc8cc8a937 (diff)
Port to FreeBSD.
-- Change-Id: I4e65cc583e758d2f7e45209ffcb37f6a871e2ed7 Reviewed-on: https://bazel-review.git.corp.google.com/#/c/1840 MOS_MIGRATED_REVID=101462155
Diffstat (limited to 'third_party/ijar/test/testenv.sh')
-rwxr-xr-xthird_party/ijar/test/testenv.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/third_party/ijar/test/testenv.sh b/third_party/ijar/test/testenv.sh
index e14aadf7a1..0cb2c21da8 100755
--- a/third_party/ijar/test/testenv.sh
+++ b/third_party/ijar/test/testenv.sh
@@ -23,16 +23,16 @@
source "${TEST_SRCDIR}/src/test/shell/unittest.bash" || \
{ echo "Failed to source unittest.bash" >&2; exit 1; }
-## Mac OS X stat and MD5
+## OSX/BSD stat and MD5
PLATFORM="$(uname -s | tr 'A-Z' 'a-z')"
-if [[ "$PLATFORM" = "darwin" ]]; then
+if [[ "$PLATFORM" = "linux" ]]; then
function statfmt() {
- stat -f "%z" $1
+ stat -c "%s" $1
}
MD5SUM=/sbin/md5
else
function statfmt() {
- stat -c "%s" $1
+ stat -f "%z" $1
}
MD5SUM=md5sum
fi