aboutsummaryrefslogtreecommitdiff
path: root/scripts/license
blob: 2a2de9b35f9d804c302ea2096034f0d55e385254 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

SPDX="/* SPDX-License-Identifier: GPL-3.0-or-later */"

for f in "$@"
do
	if [ "$(head -1 "$f")" != "${SPDX}" ]
	then
		sed -i "1i${SPDX}\n" "$f"
	fi
done