strace/bootstrap
Elvira Khabirova b1c448cd47 bootstrap: delete personality test directories beforehand
* bootstrap: Delete tests-m32 and tests-mx32 directories
before creating them.
2015-07-18 00:01:40 +00:00

20 lines
319 B
Bash
Executable File

#!/bin/sh -eu
for m in -m32 -mx32; do
tests=tests$m
rm -rf $tests
mkdir $tests
sed "s/^AM_CFLAGS[[:space:]]*=.*/& $m/" \
tests/Makefile.am > $tests/Makefile.am
for f in tests/*; do
case "${f##*/}" in
Makefile*) continue;;
esac
ln -s ../"$f" $tests/
done
done
./xlat/gen.sh
exec autoreconf -f -i "$@"