Commit | Line | Data |
---|---|---|
648db22b | 1 | . "$COMMON/platform.sh" |
2 | ||
3 | MTIME="stat -c %Y" | |
4 | case "$UNAME" in | |
5 | Darwin | FreeBSD | OpenBSD | NetBSD) MTIME="stat -f %m" ;; | |
6 | esac | |
7 | ||
8 | assertSameMTime() { | |
9 | MT1=$($MTIME "$1") | |
10 | MT2=$($MTIME "$2") | |
11 | echo MTIME $MT1 $MT2 | |
12 | [ "$MT1" = "$MT2" ] || die "mtime on $1 doesn't match mtime on $2 ($MT1 != $MT2)" | |
13 | } |