Have to use g prefix for gnu tools also on *BSD

This commit is contained in:
Loïc Bartoletti 2022-03-16 17:51:07 +01:00 committed by Nyall Dawson
parent 295e3603a6
commit a72ffafb8f
11 changed files with 21 additions and 21 deletions

View File

@ -16,7 +16,7 @@
# sort by version option
SV=V
if [[ "$OSTYPE" =~ darwin* ]]; then
if [[ "$OSTYPE" == *bsd* ]] || [[ "$OSTYPE" =~ darwin* ]]; then
SV=n
fi

View File

@ -9,9 +9,9 @@
set -e
# GNU prefix command for mac os support (gsed, gsplit)
# GNU prefix command for bsd/mac os support (gsed, gsplit)
GP=
if [[ "$OSTYPE" =~ darwin* ]]; then
if [[ "$OSTYPE" == *bsd* ]] || [[ "$OSTYPE" =~ darwin* ]]; then
GP=g
fi

View File

@ -24,9 +24,9 @@ fi
cd "$TOPLEVEL"
# GNU prefix command for mac os support (gsed, gsplit)
# GNU prefix command for bsd/mac os support (gsed, gsplit)
GP=
if [[ "$OSTYPE" =~ darwin* ]]; then
if [[ "$OSTYPE" == *bsd* ]] || [[ "$OSTYPE" =~ darwin* ]]; then
GP=g
fi

View File

@ -30,9 +30,9 @@ TOPLEVEL=$(git rev-parse --show-toplevel)
cd "$TOPLEVEL" || exit
# GNU prefix command for mac os support (gsed, gsplit)
# GNU prefix command for bsd/mac os support (gsed, gsplit)
GP=
if [[ "$OSTYPE" =~ darwin* ]]; then
if [[ "$OSTYPE" == *bsd* ]] || [[ "$OSTYPE" =~ darwin* ]]; then
GP=g
fi

View File

@ -7,9 +7,9 @@
set -e
# GNU prefix command for mac os support (gsed, gsplit)
# GNU prefix command for bsd/mac os support (gsed, gsplit)
GP=
if [[ "$OSTYPE" =~ darwin* ]]; then
if [[ "$OSTYPE" == *bsd* ]] || [[ "$OSTYPE" =~ darwin* ]]; then
GP=g
fi

View File

@ -25,9 +25,9 @@ DIR=$(git rev-parse --show-toplevel)
pushd ${DIR} > /dev/null
# GNU prefix command for mac os support (gsed, gsplit)
# GNU prefix command for bsd/mac os support (gsed, gsplit)
GP=
if [[ "$OSTYPE" =~ darwin* ]]; then
if [[ "$OSTYPE" == *bsd* ]] || [[ "$OSTYPE" =~ darwin* ]]; then
GP=g
fi

View File

@ -27,9 +27,9 @@ set -e
DIR=$(git rev-parse --show-toplevel)
# GNU prefix command for mac os support (gsed, gsplit)
# GNU prefix command for bsd/mac os support (gsed, gsplit)
GP=
if [[ "$OSTYPE" =~ darwin* ]]; then
if [[ "$OSTYPE" == *bsd* ]] || [[ "$OSTYPE" =~ darwin* ]]; then
GP=g
fi

View File

@ -32,9 +32,9 @@ DIR=$(git rev-parse --show-toplevel)/scripts/spell_check
AGIGNORE=${DIR}/.agignore
# GNU prefix command for mac os support (gsed, gsplit)
# GNU prefix command for bsd/mac os support (gsed, gsplit)
GP=
if [[ "$OSTYPE" =~ darwin* ]]; then
if [[ "$OSTYPE" == *bsd* ]] || [[ "$OSTYPE" =~ darwin* ]]; then
GP=g
fi

View File

@ -16,9 +16,9 @@
# Testing the spell test :)
# GNU prefix command for mac os support (gsed, gsplit)
# GNU prefix command for bsd/mac os support (gsed, gsplit)
GP=
if [[ "$OSTYPE" =~ darwin* ]]; then
if [[ "$OSTYPE" == *bsd* ]] || [[ "$OSTYPE" =~ darwin* ]]; then
GP=g
fi

View File

@ -6,9 +6,9 @@ srcdir=$(dirname $0)/../../
DIR=$(git -C ${srcdir} rev-parse --show-toplevel)
# GNU prefix command for mac os support (gsed, gsplit)
# GNU prefix command for bsd/mac os support (gsed, gsplit)
GP=
if [[ "$OSTYPE" =~ darwin* ]]; then
if [[ "$OSTYPE" == *bsd* ]] || [[ "$OSTYPE" =~ darwin* ]]; then
GP=g
fi

View File

@ -2,9 +2,9 @@
set -e
# GNU prefix command for mac os support (gsed, gsplit)
# GNU prefix command for bsd/mac os support (gsed, gsplit)
GP=
if [[ "$OSTYPE" =~ darwin* ]]; then
if [[ "$OSTYPE" == *bsd* ]] || [[ "$OSTYPE" =~ darwin* ]]; then
GP=g
fi