diff --git a/dist-build/android-build.sh b/dist-build/android-build.sh index e8d65b2302..2937370f0f 100755 --- a/dist-build/android-build.sh +++ b/dist-build/android-build.sh @@ -62,7 +62,7 @@ fi --with-sysroot="${TOOLCHAIN_DIR}/sysroot" || exit 1 if [ "$NDK_PLATFORM" != "$NDK_PLATFORM_COMPAT" ]; then - egrep '^#define ' config.log | sort -u >config-def-compat.log + grep -E '^#define ' config.log | sort -u >config-def-compat.log echo echo "Configuring again for platform [${NDK_PLATFORM}]" echo diff --git a/test/constcheck.sh b/test/constcheck.sh index 7beef1bacb..9fd17eb731 100755 --- a/test/constcheck.sh +++ b/test/constcheck.sh @@ -5,7 +5,7 @@ CT='ct.c' echo '#include ' > "$CT" echo '#include ' >> "$CT" echo 'int main(void) {' >> "$CT" -for macro in $(egrep -r '#define crypto_.*BYTES(_[A-Z]+)? ' src/libsodium/include | \ +for macro in $(grep -Er '#define crypto_.*BYTES(_[A-Z]+)? ' src/libsodium/include | \ cut -d: -f2- | cut -d' ' -f2 | sort -u); do func=$(echo "$macro" | tr A-Z a-z) echo " assert($func() == $macro);" >> "$CT"