Changeset cb7be8f in mainline for tools/transform-copyright.sh
- Timestamp:
- 2022-08-13T11:37:37Z (2 years ago)
- Children:
- b57ba05
- Parents:
- 1dbba6c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/transform-copyright.sh
r1dbba6c rcb7be8f 1 1 #!/bin/sh 2 2 3 # git grep -l --null "^# Copyright\b" -- '*. build' | xargs -r -L1 -0 tools/transform-copyright.sh3 # git grep -l --null "^# Copyright\b" -- '*.S' | xargs -r -L1 -0 tools/transform-copyright.sh 4 4 5 5 FILENAME="$1" … … 11 11 if diff -q $FILENAME.license__ license_text_tmp.txt; then 12 12 tail -n +27 $FILENAME.nocopyright__ > $FILENAME.nolicense__ 13 echo " #" > $FILENAME14 sed 's/ Copyright (c)/SPDX-FileCopyrightText:/g' $FILENAME.copyright__ >> $FILENAME15 echo " #" >> $FILENAME16 echo " #SPDX-License-Identifier: BSD-3-Clause" >> $FILENAME17 echo " #" >> $FILENAME13 echo "/*" > $FILENAME 14 sed 's/\# Copyright (c)/ * SPDX-FileCopyrightText:/g' $FILENAME.copyright__ >> $FILENAME 15 echo " *" >> $FILENAME 16 echo " * SPDX-License-Identifier: BSD-3-Clause" >> $FILENAME 17 echo " */" >> $FILENAME 18 18 19 19 cat $FILENAME.nolicense__ >> $FILENAME
Note:
See TracChangeset
for help on using the changeset viewer.