Skip to content

Commit 36d2beb

Browse files
CaseyCartertkoeppe
authored andcommitted
[check.sh] Escape backslash in awk program to silence warning (#4099)
1 parent 6d7af92 commit 36d2beb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/check.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ grep -ne '\\pnum.\+$' $texfiles && exit 1
2929

3030
# Two consecutive \pnum
3131
for f in $texfiles; do
32-
awk 'prev == $0 && /^\\pnum/ { print FILENAME ":" FNR ": duplicate \pnum on consecutive lines" } { prev = $0 }' $f
32+
awk 'prev == $0 && /^\\pnum/ { print FILENAME ":" FNR ": duplicate \\pnum on consecutive lines" } { prev = $0 }' $f
3333
done | grep . && exit 1
3434

3535
# \opt used incorrectly.
@@ -136,11 +136,11 @@ done | grep . && exit 1
136136
# to fix: sed -i 's/placeholder\({[-A-Za-z]*}@\?(\)/placeholdernc\1/g' *.tex
137137

138138
# \placeholdernc before <
139-
#egrep 'placeholdernc{[-A-Za-z]*}@?<' *.tex
140-
# to fix: sed -i 's/placeholdernc\({[-A-Za-z]*}@\?<\)/placeholder\1/g' *.tex
139+
#egrep 'placeholdernc{[-A-Za-z]*}@?<' *.tex
140+
# to fix: sed -i 's/placeholdernc\({[-A-Za-z]*}@\?<\)/placeholder\1/g' *.tex
141141

142142
# \placeholder before . or ,
143-
# egrep 'placeholder{[-A-Za-z]*}@?[,.]' *.tex
143+
# egrep 'placeholder{[-A-Za-z]*}@?[,.]' *.tex
144144
# to fix: sed -i 's/placeholder\({[-A-Za-z]*}@\?[.,]\)/placeholdernc\1/g' *.tex
145145

146146
# We can't reliably check if the PDF is up to date, because we don't have a

0 commit comments

Comments
 (0)