Skip to content

Commit 1c6cae0

Browse files
jensmaurertkoeppe
authored andcommitted
[check] Fix MacOS build by sorting all input files for the comparison
This makes us independent from any particular sort order a tool might prefer.
1 parent 6f18c6b commit 1c6cae0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
matrix:
1919
cfg:
2020
- { name: 'Linux', os: 'ubuntu-24.04' }
21-
# - { name: 'MacOS', os: 'macos-15' }
21+
- { name: 'MacOS', os: 'macos-15' }
2222

2323
steps:
2424
- name: checkout

tools/check-output.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ done
9191
function indexentries() { sed 's,\\glossaryentry{\(.*\)@.*,\1,' "$1" | LANG=C sort; }
9292
function removals() { diff -u "$1" "$2" | grep '^-' | grep -v '^---' | sed 's/^-//'; }
9393
function difference() { diff -u "$1" "$2" | grep '^[-+]' | grep -v '^\(---\|+++\)'; }
94-
XREFDELTA="$(difference <(indexentries xrefdelta.glo) <(removals <(cat xrefprev) <(indexentries xrefindex.glo)))"
94+
XREFDELTA="$(difference <(indexentries xrefdelta.glo) <(removals <(LANG=C sort < xrefprev) <(indexentries xrefindex.glo)))"
9595
if [ -n "$XREFDELTA" ]; then
9696
echo "incorrect entries in xrefdelta.tex:" >&2
9797
echo "$XREFDELTA" | sed 's,^-,spurious ,; s,^+,missing ,;' >&2

0 commit comments

Comments
 (0)