Add serialized ABI definition files
[urcu.git] / extras / abi / dump_abi.sh
1 #!/bin/bash
2 # SPDX-License-Identifier: GPL-2.0-only
3
4 set -eu
5
6 INDIR=$1
7 OUTDIR=$2
8
9 ARGS=(
10 "--annotate" # Add comments to the xml output
11 "--no-corpus-path" # Do not put the path in the abi-corpus
12 )
13
14 for lib in "${INDIR}"/liburcu*.so.?
15 do
16 abidw "${ARGS[@]}" --out-file "${OUTDIR}/$(basename "$lib").xml" "$lib"
17
18 # Clean the full paths
19 sed -i "s#$(pwd)/##g" "${OUTDIR}/$(basename "$lib").xml"
20 done
21
This page took 0.02894 seconds and 4 git commands to generate.