diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-04-30 16:03:55 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-04-30 16:03:55 +0300 |
| commit | 191eaea25cf569ad9c5fb12b8755ae6400750e58 (patch) | |
| tree | a0cd14f4a772da01b445355eb35eec54616d01ec /scripts/license | |
| download | gran-191eaea25cf569ad9c5fb12b8755ae6400750e58.tar.gz gran-191eaea25cf569ad9c5fb12b8755ae6400750e58.zip | |
initial
Diffstat (limited to 'scripts/license')
| -rwxr-xr-x | scripts/license | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/license b/scripts/license new file mode 100755 index 0000000..2a2de9b --- /dev/null +++ b/scripts/license @@ -0,0 +1,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 |
