diff --git a/apps/magpie/Cargo.toml b/apps/magpie/Cargo.toml index 1dcb110..37e72e8 100644 --- a/apps/magpie/Cargo.toml +++ b/apps/magpie/Cargo.toml @@ -2,6 +2,7 @@ name = "canary-magpie" version = "0.1.0" edition = "2021" +license = "AGPL-3.0-or-later" [[bin]] name = "magpie" diff --git a/apps/music-player/src/mpris.rs b/apps/music-player/src/mpris.rs index 4cf2b4b..fb06bf0 100644 --- a/apps/music-player/src/mpris.rs +++ b/apps/music-player/src/mpris.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2022 Marceline Cramer +// SPDX-License-Identifier: AGPL-3.0-or-later + use std::collections::HashMap; use zbus::fdo::DBusProxy; diff --git a/check_licenses.sh b/check_licenses.sh index aad8cd3..19da131 100755 --- a/check_licenses.sh +++ b/check_licenses.sh @@ -12,16 +12,16 @@ dir="$(pwd | sed 's/\//\n/g' | tail -n 1)" for toml in $(find "$PWD" -name "Cargo.toml"); do printf "Project: %s\n" "$(tomcat package.name "$toml")" + toml_lic="$(tomcat package.license "$toml")" + if ! test -n "$toml_lic"; then + printf "%s: Missing license information\n" "$(printf "%s\n" "$toml" |\ + sed "s/^.\+$dir\///g")" + continue 2 + fi for file in $(find "$(printf "%s\n" "$toml" |\ sed 's/Cargo\.toml/src/g')" -name "*.rs") do info="$(head -n 2 "$file")" - toml_lic="$(tomcat package.license "$toml")" - if ! test -n "$toml_lic"; then - printf "%s: Missing license information\n" "$(printf "%s\n" "$toml" |\ - sed "s/^.\+$dir\///g")" - continue 2 - fi if ! [ "$toml_lic" = "$(printf "%s\n" "$info" | tail -n 1 |\ sed -n 's/\/\/ SPDX-License-Identifier: //p')" ] then diff --git a/scripts/sao-ui/src/music_player.rs b/scripts/sao-ui/src/music_player.rs index ab05398..9be32f0 100644 --- a/scripts/sao-ui/src/music_player.rs +++ b/scripts/sao-ui/src/music_player.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2022 Marceline Crmaer +// SPDX-License-Identifier: AGPL-3.0-or-later + use api::*; use canary_script::*; diff --git a/scripts/sao-ui/src/style.rs b/scripts/sao-ui/src/style.rs index 2f383f0..0d5c2ff 100644 --- a/scripts/sao-ui/src/style.rs +++ b/scripts/sao-ui/src/style.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2022 Marceline Crmaer +// SPDX-License-Identifier: AGPL-3.0-or-later + use canary_script::Color; /// A reusable set of colors. Used by default widget styles. diff --git a/scripts/sao-ui/src/widgets/palette.rs b/scripts/sao-ui/src/widgets/palette.rs index d045feb..82652eb 100644 --- a/scripts/sao-ui/src/widgets/palette.rs +++ b/scripts/sao-ui/src/widgets/palette.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2022 Marceline Crmaer +// SPDX-License-Identifier: AGPL-3.0-or-later + use super::prelude::*; use shell::Offset; use text::{HorizontalAlignment, Label, LabelText}; diff --git a/scripts/sao-ui/src/widgets/slider.rs b/scripts/sao-ui/src/widgets/slider.rs index 5a8cd20..509681a 100644 --- a/scripts/sao-ui/src/widgets/slider.rs +++ b/scripts/sao-ui/src/widgets/slider.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2022 Marceline Crmaer +// SPDX-License-Identifier: AGPL-3.0-or-later + use super::prelude::*; pub struct SliderStyle {