-
Notifications
You must be signed in to change notification settings - Fork 38
/
reuse.sh
executable file
·18 lines (14 loc) · 785 Bytes
/
reuse.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# SPDX-FileCopyrightText: 2023 "Everybody"
#
# SPDX-License-Identifier: MIT
LIKE_C="$(find -name "*.scala") $(find -name "*.sbt") project/build.properties $(find -name "*.h") $(find -name "*.c") $(find -name "*.cpp") $(find -name "*.v")"
LIKE_PYTHON="$(find -name "*.tcl") $(find -name "*.py") $(find -name "*.sh") $(find -name "makefile")"
LIKE_RAW="$(find -name "*.license") $(find -name "*.md") .gitmodules .github/workflows/scala.yml"
ARGS='addheader --copyright-style spdx --license MIT --copyright "Everybody"'
echo $LIKE_C
reuse $ARGS --style c $LIKE_C
reuse $ARGS --style python $LIKE_PYTHON
reuse addheader --license CC0-1.0 --copyright "Everybody" $LIKE_RAW
reuse addheader --license CC0-1.0 --copyright "Everybody" $(find -name ".gitignore")
reuse lint