From 3afc285d385d5a28ead594ac523a014b271fb9d5 Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Mon, 21 Sep 2026 00:14:05 +0900 Subject: [PATCH] build-gnu.sh: sed tests/sort/sort.pl to keep clap provided message --- util/build-gnu.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/build-gnu.sh b/util/build-gnu.sh index bb2448b28bf..5fad6eaa409 100755 --- a/util/build-gnu.sh +++ b/util/build-gnu.sh @@ -226,6 +226,10 @@ sed -i "s|cannot create regular file 'no-such/': Not a directory|'no-such/' is n # Our message is better sed -i "s|warning: unrecognized escape|warning: incomplete hex escape|" tests/stat/stat-printf.pl +# Our message is better: +# clap provides allowed range for --parallel for given invalid value +sed -i '/^# Invalid --parallel arguments\./,+4d' tests/sort/sort.pl + # Remove dup of /usr/bin/ and /usr/local/bin/ when executed several times grep -rlE '/usr/bin/\s?/usr/bin' init.cfg tests/* | xargs -r "${SED}" -Ei 's|/usr/bin/\s?/usr/bin/|/usr/bin/|g' grep -rlE '/usr/local/bin/\s?/usr/local/bin' init.cfg tests/* | xargs -r "${SED}" -Ei 's|/usr/local/bin/\s?/usr/local/bin/|/usr/local/bin/|g'