]> granicus.if.org Git - strace/blob - bootstrap
bpf: move common code to a separate function
[strace] / bootstrap
1 #!/bin/sh -eu
2
3 for m in m32 mx32; do
4         tests=tests-$m
5         rm -rf $tests
6         mkdir $tests
7         s='[[:space:]]*'
8         sed "s/@arch@/@arch_$m@/;
9              s/^MPERS_NAME$s=.*/& $m/;
10              s/^ARCH_MFLAGS$s=.*/& -DMPERS_IS_\$(MPERS_NAME) -$m/" \
11                 tests/Makefile.am > $tests/Makefile.am
12         for f in tests/*; do
13                 case "${f##*/}" in
14                 Makefile*) continue;;
15                 esac
16                 ln -s ../"$f" $tests/
17         done
18 done
19
20 ./generate_mpers_am.sh
21 ./xlat/gen.sh
22
23 exec autoreconf -f -i "$@"