]> granicus.if.org Git - strace/blob - bootstrap
Remove traces of riscv64 mpers
[strace] / bootstrap
1 #!/bin/sh -eu
2 #
3 # Copyright (c) 2014-2018 The strace developers.
4 # All rights reserved.
5 #
6 # SPDX-License-Identifier: LGPL-2.1-or-later
7
8 ./m4/gen_bpf_attr_m4.sh
9 ./generate_mpers_am.sh
10 ./xlat/gen.sh
11 ./tests/gen_pure_executables.sh
12 ./tests/gen_tests.sh
13
14 for m in m32 mx32; do
15         tests=tests-$m
16         rm -rf $tests
17         mkdir $tests
18         s='[[:space:]]*'
19         [ "$m" = m32 ] && k="s/^\\(SIZEOF_KERNEL_LONG_T$s=\\).*/\\1 4/;" || k=
20         sed "s/@arch@/@arch_$m@/;
21              s/^\\(SIZEOF_LONG$s=\\).*/\\1 4/; $k
22              s/^MPERS_NAME$s=.*/& $m/;
23              s/^MPERS_CC_FLAGS$s=.*/& @cc_flags_$m@/;
24              s/^ARCH_MFLAGS$s=.*/& -DMPERS_IS_\$(MPERS_NAME) \$(MPERS_CC_FLAGS)/" \
25                 tests/Makefile.am > $tests/Makefile.am
26         for f in tests/*; do
27                 case "${f##*/}" in
28                 Makefile*) continue;;
29                 esac
30                 ln -s ../"$f" $tests/
31         done
32 done
33
34 for f in README INSTALL; do
35         cp "dist/$f" .
36 done
37
38 autoreconf -f -i "$@"