From 3e892de4d53958922e8a0be71bf1aee80821d590 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 24 Dec 2023 16:37:43 +0100 Subject: [PATCH] gnu: Improve the diff when comparing diff --- util/build-gnu.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/build-gnu.sh b/util/build-gnu.sh index 4b682f4ada0..0b6f984d9a8 100755 --- a/util/build-gnu.sh +++ b/util/build-gnu.sh @@ -115,6 +115,8 @@ else # Change the PATH in the Makefile to test the uutils coreutils instead of the GNU coreutils sed -i "s/^[[:blank:]]*PATH=.*/ PATH='${UU_BUILD_DIR//\//\\/}\$(PATH_SEPARATOR)'\"\$\$PATH\" \\\/" Makefile sed -i 's| tr | /usr/bin/tr |' tests/init.sh + # Use a better diff + sed -i 's|diff -c|diff -u|g' tests/Coreutils.pm make -j "$(nproc)" touch gnu-built fi