1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

GNU build: perf the change only once

This commit is contained in:
Sylvestre Ledru 2025-01-13 10:15:50 +01:00
parent d445edfd19
commit 7f0d77954d

View file

@ -134,8 +134,6 @@ else
# Use a better diff
sed -i 's|diff -c|diff -u|g' tests/Coreutils.pm
"${MAKE}" -j "$("${NPROC}")"
touch gnu-built
fi
# Handle generated factor tests
t_first=00
@ -172,13 +170,15 @@ for i in ${seq}; do
sed -i -e "s/\$(tf)\/t${i}.sh//g" Makefile
done
grep -rl 'path_prepend_' tests/* | xargs sed -i 's| path_prepend_ ./src||'
# Remove tests checking for --version & --help
# Not really interesting for us and logs are too big
sed -i -e '/tests\/help\/help-version.sh/ D' \
-e '/tests\/help\/help-version-getopt.sh/ D' \
Makefile
touch gnu-built
fi
grep -rl 'path_prepend_' tests/* | xargs sed -i 's| path_prepend_ ./src||'
# printf doesn't limit the values used in its arg, so this produced ~2GB of output
sed -i '/INT_OFLOW/ D' tests/printf/printf.sh