Commit | Line | Data |
---|---|---|
7538241b | 1 | #!/bin/bash |
e03d7c66 MJ |
2 | |
3 | # SPDX-FileCopyrightText: 2023 EfficiOS, Inc | |
4 | # | |
7538241b MJ |
5 | # SPDX-License-Identifier: GPL-2.0-only |
6 | ||
7 | set -eu | |
8 | ||
9 | INDIR=$1 | |
10 | OUTDIR=$2 | |
11 | ||
12 | ARGS=( | |
13 | "--annotate" # Add comments to the xml output | |
14 | "--no-corpus-path" # Do not put the path in the abi-corpus | |
15 | ) | |
16 | ||
17 | for lib in "${INDIR}"/liblttng-ust*.so.? | |
18 | do | |
19 | abidw "${ARGS[@]}" --out-file "${OUTDIR}/$(basename "$lib").xml" "$lib" | |
20 | ||
21 | # Clean the full paths | |
22 | sed -i "s#$(pwd)/##g" "${OUTDIR}/$(basename "$lib").xml" | |
23 | done | |
24 |