diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-05-18 17:15:57 +0300 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-05-18 17:15:57 +0300 |
commit | 0e6bc60ceb3d2676fae166308668680a2f675d17 (patch) | |
tree | 0f7ebe21dafb8f7546e36b91645e4e5281fff856 /scripts/license | |
download | berg-0e6bc60ceb3d2676fae166308668680a2f675d17.tar.gz berg-0e6bc60ceb3d2676fae166308668680a2f675d17.zip |
initial rough skeleton
+ Naive/fast allocation hashmap
+ Stores/loads are currently all checked, the idea about static analysis
to skip checks is still TODO
Diffstat (limited to 'scripts/license')
-rwxr-xr-x | scripts/license | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/license b/scripts/license new file mode 100755 index 0000000..53bd5da --- /dev/null +++ b/scripts/license @@ -0,0 +1,16 @@ +#!/bin/sh + +SPDX="/* SPDX-License-Identifier: copyleft-next-0.3.1 */" + +for f in "$@" +do + if [ "$(head -1 "$f")" != "${SPDX}" ] + then + sed -i "1i${SPDX}\n" "$f" + fi + + if ! grep 'Copyright' "$f" > /dev/null + then + echo "Missing copyright info in $f" + fi +done |