strace/bootstrap
Mike Frysinger 11cb0da472 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.
2015-02-27 04:43:11 +00:00

19 lines
339 B
Bash
Executable File

#!/bin/sh -eu
for m in -m32 -mx32; do
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
case "${f##*/}" in
Makefile.am|Makefile.in) continue;;
esac
ln -s ../"$f" tests$m/
done
done
./xlat/gen.sh
exec autoreconf -f -i "$@"