Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions util/build-gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ else

# Handle generated factor tests
t_first=00
t_max=37
t_max=40
seq=$(
i=${t_first}
while test "${i}" -le "${t_max}"; do
Expand All @@ -149,8 +149,8 @@ else
done
)
for i in ${seq}; do
echo "strip t${i}.sh from Makefile"
sed -i -e "s/\$(tf)\/t${i}.sh//g" Makefile
echo "strip t${i}.sh from Makefile and tests/local.mk"
sed -i -e "s/\$(tf)\/t${i}.sh//g" Makefile tests/local.mk
done

# Remove tests checking for --version & --help
Expand All @@ -159,6 +159,11 @@ else
touch gnu-built
fi

# Keep Makefile.in newer than the local.mk files we just modified,
# and Makefile newer than Makefile.in, so make won't re-run
# automake or config.status and undo our edits.
touch Makefile.in 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"
Expand Down
Loading