]> granicus.if.org Git - strace/blob - bootstrap
strace: terminate itself if interrupted by a signal
[strace] / bootstrap
1 #!/bin/sh -eu
2
3 ./m4/gen_bpf_attr_m4.sh
4 ./generate_mpers_am.sh
5 ./xlat/gen.sh
6 ./tests/gen_pure_executables.sh
7 ./tests/gen_tests.sh
8
9 for m in m32 mx32; do
10         tests=tests-$m
11         rm -rf $tests
12         mkdir $tests
13         s='[[:space:]]*'
14         [ "$m" = m32 ] && k="s/^\\(SIZEOF_KERNEL_LONG_T$s=\\).*/\\1 4/;" || k=
15         sed "s/@arch@/@arch_$m@/;
16              s/^\\(SIZEOF_LONG$s=\\).*/\\1 4/; $k
17              s/^MPERS_NAME$s=.*/& $m/;
18              s/^MPERS_CC_FLAGS$s=.*/& @cc_flags_$m@/;
19              s/^ARCH_MFLAGS$s=.*/& -DMPERS_IS_\$(MPERS_NAME) \$(MPERS_CC_FLAGS)/" \
20                 tests/Makefile.am > $tests/Makefile.am
21         for f in tests/*; do
22                 case "${f##*/}" in
23                 Makefile*) continue;;
24                 esac
25                 ln -s ../"$f" $tests/
26         done
27 done
28
29 for f in README INSTALL; do
30         cp "dist/$f" .
31 done
32
33 autoreconf -f -i "$@"