Changeset cb7be8f in mainline for tools/transform-copyright.sh


Ignore:
Timestamp:
2022-08-13T11:37:37Z (2 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
b57ba05
Parents:
1dbba6c
Message:

Update headers in .S files that incorrectly use #-style comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/transform-copyright.sh

    r1dbba6c rcb7be8f  
    11#!/bin/sh
    22
    3 # git grep -l --null "^# Copyright\b" -- '*.build' | xargs -r -L1 -0 tools/transform-copyright.sh
     3# git grep -l --null "^# Copyright\b" -- '*.S' | xargs -r -L1 -0 tools/transform-copyright.sh
    44
    55FILENAME="$1"
     
    1111if diff -q $FILENAME.license__ license_text_tmp.txt; then
    1212        tail -n +27 $FILENAME.nocopyright__ > $FILENAME.nolicense__
    13         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
     13        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
    1818       
    1919        cat $FILENAME.nolicense__ >> $FILENAME
Note: See TracChangeset for help on using the changeset viewer.