projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rculfhash: make cds_lfht_iter_get_node argument const
[urcu.git]
/
extras
/
abi
/
dump_abi.sh
diff --git
a/extras/abi/dump_abi.sh
b/extras/abi/dump_abi.sh
index e8aedcb13883b970b91c4d838a48ccd33a9fe5d4..673b8391e16442d244076c79ff2ef20b91e88eb6 100755
(executable)
--- a/
extras/abi/dump_abi.sh
+++ b/
extras/abi/dump_abi.sh
@@
-1,4
+1,7
@@
-#!/bin/bash
+#!/usr/bin/env bash
+
+# SPDX-FileCopyrightText: 2021 Michael Jeanson <mjeanson@efficios.com>
+#
# SPDX-License-Identifier: GPL-2.0-only
set -eu
# SPDX-License-Identifier: GPL-2.0-only
set -eu
@@
-11,11
+14,20
@@
ARGS=(
"--no-corpus-path" # Do not put the path in the abi-corpus
)
"--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"
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 <!--\n${spdx}-${copyright}: $(date +%Y) EfficiOS Inc.\n\n${spdx}-${license}: CC0-1.0\n-->" "${OUTDIR}/$(basename "$lib").xml"
done
done
This page took
0.023194 seconds
and
4
git commands to generate.