Skip to content

Commit 2df317b

Browse files
authored
[check.sh] Escape backslash in awk program to silence warning (#4099)
1 parent e224430 commit 2df317b

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.
@@ -103,11 +103,11 @@ done | grep . && exit 1
103103
# to fix: sed -i 's/placeholder\({[-A-Za-z]*}@\?(\)/placeholdernc\1/g' *.tex
104104

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

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

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

0 commit comments

Comments
 (0)