Skip to content

Commit

Permalink
egrep -> grep -E
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Nov 23, 2023
1 parent 5dd81ad commit 5466030
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist-build/android-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/constcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CT='ct.c'
echo '#include <assert.h>' > "$CT"
echo '#include <sodium.h>' >> "$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"
Expand Down

0 comments on commit 5466030

Please sign in to comment.