mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Prevent make check from rebuilding GNU binaries over uutils ones
This commit is contained in:
committed by
Sylvestre Ledru
parent
23eb2ada8c
commit
de5c827d99
@@ -164,6 +164,11 @@ fi
|
||||
# automake or config.status and undo our edits.
|
||||
touch Makefile.in Makefile
|
||||
|
||||
# Patch the Makefile PATH to point to uutils build dir instead of GNU src/
|
||||
sed -i "s/^[[:blank:]]*PATH=.*/ PATH='${UU_BUILD_DIR//\//\\/}\$(PATH_SEPARATOR)'\"\$\$PATH\" \\\/" Makefile
|
||||
# Prevent make check from rebuilding the GNU binaries over the uutils ones
|
||||
sed -i 's/^check-am: all-am/check-am:/' Makefile
|
||||
|
||||
grep -rl 'path_prepend_' tests/* | xargs -r "${SED}" -i 's| path_prepend_ ./src||'
|
||||
# path_prepend_ sets $abs_path_dir_: set it manually instead.
|
||||
grep -rl '\$abs_path_dir_' tests/*/*.sh | xargs -r "${SED}" -i "s|\$abs_path_dir_|${UU_BUILD_DIR//\//\\/}|g"
|
||||
|
||||
Reference in New Issue
Block a user