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
for m in -m32 -mx32; do
mkdir tests$m ||
continue
mkdir -p tests$m
find tests$m -type l -delete
sed "s/^AM_CFLAGS[[:space:]]*=.*/& $m/" \
tests/Makefile.am > tests$m/Makefile.am
for f in tests/*; do
[ "${f##*/}" != Makefile.am ] ||
continue
case "${f##*/}" in
Makefile.am|Makefile.in) continue;;
esac
ln -s ../"$f" tests$m/
done
done