X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=extras%2Fabi%2Fdump_abi.sh;h=673b8391e16442d244076c79ff2ef20b91e88eb6;hb=5eb8d947c57e092129443aa38efffc9fb6ab6816;hp=65379f5b39064f0a1098ca968e83321e8a0e1e97;hpb=d001c88633f6a58e94eb73f4814976d13f61bd77;p=userspace-rcu.git diff --git a/extras/abi/dump_abi.sh b/extras/abi/dump_abi.sh index 65379f5..673b839 100755 --- a/extras/abi/dump_abi.sh +++ b/extras/abi/dump_abi.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-FileCopyrightText: 2021 Michael Jeanson # @@ -14,11 +14,20 @@ ARGS=( "--no-corpus-path" # Do not put the path in the abi-corpus ) +# Older version of the reuse tool are a bit dumb, split the tags string to make +# it happy. +spdx="SPDX" +copyright="FileCopyrightText" +license="License-Identifier" + 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" + + # Add SPDX headers + sed -i "2 i " "${OUTDIR}/$(basename "$lib").xml" done