X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=extras%2Fabi%2Fdump_abi.sh;h=a7bd5fda4c9ffcca25b51b7cd32298c1c7ba804a;hp=65379f5b39064f0a1098ca968e83321e8a0e1e97;hb=c5e71b137f1ea8e92b41315b8f5c9be5f38bf699;hpb=1c87adb3dde9011cc0ac576b5ec622a7c845a06a diff --git a/extras/abi/dump_abi.sh b/extras/abi/dump_abi.sh index 65379f5..a7bd5fd 100755 --- a/extras/abi/dump_abi.sh +++ b/extras/abi/dump_abi.sh @@ -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