Merge pull request 'Fix licenses' (#48) from fix-licenses into main
Reviewed-on: #48
This commit is contained in:
commit
44d2ac693a
|
@ -2,6 +2,7 @@
|
||||||
name = "canary-magpie"
|
name = "canary-magpie"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
license = "AGPL-3.0-or-later"
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "magpie"
|
name = "magpie"
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
// Copyright (c) 2022 Marceline Cramer
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
use zbus::fdo::DBusProxy;
|
use zbus::fdo::DBusProxy;
|
||||||
|
|
|
@ -12,16 +12,16 @@ dir="$(pwd | sed 's/\//\n/g' | tail -n 1)"
|
||||||
|
|
||||||
for toml in $(find "$PWD" -name "Cargo.toml"); do
|
for toml in $(find "$PWD" -name "Cargo.toml"); do
|
||||||
printf "Project: %s\n" "$(tomcat package.name "$toml")"
|
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" |\
|
for file in $(find "$(printf "%s\n" "$toml" |\
|
||||||
sed 's/Cargo\.toml/src/g')" -name "*.rs")
|
sed 's/Cargo\.toml/src/g')" -name "*.rs")
|
||||||
do
|
do
|
||||||
info="$(head -n 2 "$file")"
|
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 |\
|
if ! [ "$toml_lic" = "$(printf "%s\n" "$info" | tail -n 1 |\
|
||||||
sed -n 's/\/\/ SPDX-License-Identifier: //p')" ]
|
sed -n 's/\/\/ SPDX-License-Identifier: //p')" ]
|
||||||
then
|
then
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
// Copyright (c) 2022 Marceline Crmaer
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
use api::*;
|
use api::*;
|
||||||
use canary_script::*;
|
use canary_script::*;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
// Copyright (c) 2022 Marceline Crmaer
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
use canary_script::Color;
|
use canary_script::Color;
|
||||||
|
|
||||||
/// A reusable set of colors. Used by default widget styles.
|
/// A reusable set of colors. Used by default widget styles.
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
// Copyright (c) 2022 Marceline Crmaer
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
use super::prelude::*;
|
use super::prelude::*;
|
||||||
use shell::Offset;
|
use shell::Offset;
|
||||||
use text::{HorizontalAlignment, Label, LabelText};
|
use text::{HorizontalAlignment, Label, LabelText};
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
// Copyright (c) 2022 Marceline Crmaer
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
use super::prelude::*;
|
use super::prelude::*;
|
||||||
|
|
||||||
pub struct SliderStyle {
|
pub struct SliderStyle {
|
||||||
|
|
Loading…
Reference in New Issue