summary refs log tree commit diff
path: root/.ci
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-03-05 00:35:15 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-03-05 01:04:07 +0100
commita6f0d2ea7d8eb359e7d9ca7b5aac91ffe9d140ec (patch)
treeaab5ff97d57e57ea675e27adbf80449939cedebe /.ci
parentAvoid some duplicate property queries (diff)
downloadnheko-a6f0d2ea7d8eb359e7d9ca7b5aac91ffe9d140ec.tar.xz
Update license headers
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/format.sh2
-rwxr-xr-x.ci/licenses.sh14
2 files changed, 15 insertions, 1 deletions
diff --git a/.ci/format.sh b/.ci/format.sh
index cdbc0464..2d922ee1 100755
--- a/.ci/format.sh
+++ b/.ci/format.sh
@@ -7,7 +7,7 @@
 
 set -eu
 
-FILES=$(find src -type f -type f \( -iname "*.cpp" -o -iname "*.h" \))
+FILES=$(find src -type f \( -iname "*.cpp" -o -iname "*.h" \))
 
 for f in $FILES
 do
diff --git a/.ci/licenses.sh b/.ci/licenses.sh
new file mode 100755
index 00000000..cdcd305f
--- /dev/null
+++ b/.ci/licenses.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env sh
+
+# Runs the license update
+# Return codes:
+#  - 1 there are files to be formatted
+#  - 0 everything looks fine
+
+set -eu
+
+FILES=$(find src resources/qml -type f \( -iname "*.cpp" -o -iname "*.h" -o -iname "*.qml" \))
+
+reuse addheader --copyright="Nheko Contributors" --license="GPL-3.0-or-later" $FILES
+
+git diff --exit-code