bootstrap: always set up test dirs
When files get updated, the bootstrap script should make sure the parallel dirs are kept in sync. * bootstrap: Always generate the test$m. Clean up symlinks first. Don't link in Makefile.in files.
This commit is contained in:
parent
58c7fe9903
commit
11cb0da472
@ -1,13 +1,14 @@
|
|||||||
#!/bin/sh -eu
|
#!/bin/sh -eu
|
||||||
|
|
||||||
for m in -m32 -mx32; do
|
for m in -m32 -mx32; do
|
||||||
mkdir tests$m ||
|
mkdir -p tests$m
|
||||||
continue
|
find tests$m -type l -delete
|
||||||
sed "s/^AM_CFLAGS[[:space:]]*=.*/& $m/" \
|
sed "s/^AM_CFLAGS[[:space:]]*=.*/& $m/" \
|
||||||
tests/Makefile.am > tests$m/Makefile.am
|
tests/Makefile.am > tests$m/Makefile.am
|
||||||
for f in tests/*; do
|
for f in tests/*; do
|
||||||
[ "${f##*/}" != Makefile.am ] ||
|
case "${f##*/}" in
|
||||||
continue
|
Makefile.am|Makefile.in) continue;;
|
||||||
|
esac
|
||||||
ln -s ../"$f" tests$m/
|
ln -s ../"$f" tests$m/
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user