uatomic/x86: Remove redundant memory barriers
[urcu.git] / extras / abi / dump_abi.sh
CommitLineData
c0ecb6ea 1#!/bin/bash
d001c886
MJ
2
3# SPDX-FileCopyrightText: 2021 Michael Jeanson <mjeanson@efficios.com>
4#
c0ecb6ea
MJ
5# SPDX-License-Identifier: GPL-2.0-only
6
7set -eu
8
9INDIR=$1
10OUTDIR=$2
11
12ARGS=(
13 "--annotate" # Add comments to the xml output
14 "--no-corpus-path" # Do not put the path in the abi-corpus
15)
16
c5e71b13
MJ
17# Older version of the reuse tool are a bit dumb, split the tags string to make
18# it happy.
19spdx="SPDX"
20copyright="FileCopyrightText"
21license="License-Identifier"
22
c0ecb6ea
MJ
23for lib in "${INDIR}"/liburcu*.so.?
24do
25 abidw "${ARGS[@]}" --out-file "${OUTDIR}/$(basename "$lib").xml" "$lib"
26
27 # Clean the full paths
28 sed -i "s#$(pwd)/##g" "${OUTDIR}/$(basename "$lib").xml"
c5e71b13
MJ
29
30 # Add SPDX headers
31 sed -i "2 i <!--\n${spdx}-${copyright}: $(date +%Y) EfficiOS Inc.\n\n${spdx}-${license}: CC0-1.0\n-->" "${OUTDIR}/$(basename "$lib").xml"
c0ecb6ea
MJ
32done
33
This page took 0.026403 seconds and 4 git commands to generate.