From c774bdd5699c24a22d3c55c1925befb0b0bebfe0 Mon Sep 17 00:00:00 2001 From: malc Date: Mon, 9 Apr 2018 19:00:52 +0300 Subject: [PATCH] Next step - attoseconds --- build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index e356d97..e8cc545 100755 --- a/build.sh +++ b/build.sh @@ -6,13 +6,16 @@ unameN=$(uname) test "$unameN" = Darwin && { darwin=true wsi="wsi/osx" - dfmt="%s" } || { darwin=false wsi="wsi/x11" - dfmt="%s.%N" } +dfmt="%s" +if $(expr >/dev/null "$(date --version 2>/dev/null)" : ".*GNU"); then + dfmt="%s.%N" +fi + tstart=$(now) vecho=${vecho-:} command -v md5sum >/dev/null || { -- 2.11.4.GIT