Add serialized ABI definition files
[urcu.git] / extras / abi / dump_abi.sh
diff --git a/extras/abi/dump_abi.sh b/extras/abi/dump_abi.sh
new file mode 100755 (executable)
index 0000000..e8aedcb
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0-only
+
+set -eu
+
+INDIR=$1
+OUTDIR=$2
+
+ARGS=(
+       "--annotate" # Add comments to the xml output
+       "--no-corpus-path" # Do not put the path in the abi-corpus
+)
+
+for lib in "${INDIR}"/liburcu*.so.?
+do
+       abidw "${ARGS[@]}" --out-file "${OUTDIR}/$(basename "$lib").xml" "$lib"
+
+       # Clean the full paths
+       sed -i "s#$(pwd)/##g" "${OUTDIR}/$(basename "$lib").xml"
+done
+
This page took 0.023159 seconds and 4 git commands to generate.