Skip to content

Commit 1797461

Browse files
committed
[check] Ensure that sed is GNU sed.
This is particularly important on MacOS, where the GNU toolchain is an optional add-on, but the BSD sed would be used silently by default.
1 parent f40dd88 commit 1797461

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/check-source.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ function fail() {
2222
}
2323

2424

25+
# We require GNU tools.
26+
sed --version | grep -Fqe "GNU sed" || { echo "sed is not GNU sed"; exit 1; }
27+
2528
# Find non-ASCII (Unicode) characters in the source
2629
LC_ALL=C grep -ne '[^ -~ ]' *.tex |
2730
fail 'non-ASCII character' || failed=1

0 commit comments

Comments
 (0)