0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

Import wiredtiger: 350fecbfc787cae88cb8b785a30780408fd78e1e from branch mongodb-master

ref: 2c5dfec509..350fecbfc7
for: 6.1.0-rc0

WT-9296       Portability fix for the new paired typo checker in s_style
This commit is contained in:
Etienne Petrel 2022-05-10 03:26:19 +00:00 committed by Evergreen Agent
parent 00ff8bc78c
commit 6fb8f59c47
2 changed files with 4 additions and 4 deletions

View File

@ -59,11 +59,11 @@ else
# Finding paired typos in the comments of different file types and excluding invalid edge cases.
if [ "${fname##*.}" = "py" ]; then
egrep '#.*\s\b([a-zA-Z]+)\s\b\1[[:space:]\.]' $f > $t
egrep '#.*[[:space:]]\b([a-zA-Z]+)[[:space:]]\b\1[[:space:]\.]' $f > $t
elif [ "${fname##*.}" = "c" ] || [ "${fname##*.}" = "h" ]; then
egrep '/?\*.*\s\b([a-zA-Z]+)\s\b\1[[:space:]\.]' $f | egrep -v -e "@" -e "long long" > $t
egrep '/?\*.*[[:space:]]\b([a-zA-Z]+)[[:space:]]\b\1[[:space:]\.]' $f | egrep -v -e "@" -e "long long" > $t
else
egrep '\s\b([a-zA-Z]+)\s\b\1[[:space:]\.]' $f | egrep -v -e "@" -e "^\(" > $t
egrep '[[:space:]]\b([a-zA-Z]+)[[:space:]]\b\1[[:space:]\.]' $f | egrep -v -e "@" -e "^\(" > $t
fi
test -s $t && {

View File

@ -2,5 +2,5 @@
"vendor": "wiredtiger",
"github": "wiredtiger/wiredtiger.git",
"branch": "mongodb-master",
"commit": "2c5dfec5090faaffdf2cc397ca7f9c0332466992"
"commit": "350fecbfc787cae88cb8b785a30780408fd78e1e"
}