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:
Mike Frysinger 2015-02-26 22:22:40 -05:00 committed by Dmitry V. Levin
parent 58c7fe9903
commit 11cb0da472

View File

@ -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