#!/bin/sh -e # # Copyright (c) 2015-2019 The strace developers. # All rights reserved. # # SPDX-License-Identifier: LGPL-2.1-or-later [ "x${D:-0}" != x1 ] || set -x cd "$(dirname "$0")" list="$(sed -r -n '/^strace_SOURCES[[:space:]]*=/,/^[[:space:]]*# end of strace_SOURCES/ s/^[[:space:]]*([[:alnum:]][^.]*\.c)[[:space:]]*\\$/\1/p' Makefile.am | xargs -r grep -Elx '#[[:space:]]*include[[:space:]]+MPERS_DEFS' | tr '\n' ' ')" cat > mpers.am < mpers_xlat.h