mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-27 05:07:56 +01:00
9b7dbed58e
Make test-lib-common.sh load test-lib-<$PLATFORM>.sh to create additional shim for platform specifics. Use test-lib-FREEBSD.sh to call GNU utilities instead of native ones. - amended by db following Tomi's suggestions
9 lines
270 B
Bash
9 lines
270 B
Bash
# If present, use GNU Coreutils instead of a native BSD utils
|
|
if command -v gdate >/dev/null
|
|
then
|
|
date () { gdate "$@"; }
|
|
base64 () { gbase64 "$@"; }
|
|
wc () { gwc "$@"; }
|
|
sed () { gsed "$@"; }
|
|
sha256sum () { gsha256sum "$@"; }
|
|
fi
|