From d3ec7cd308690e308f8a6ee767cfc434472958f1 Mon Sep 17 00:00:00 2001 From: Terts Diepraam Date: Thu, 30 Nov 2023 11:20:20 +0100 Subject: [PATCH] add license headers and LICENSE file for derive --- LICENSE | 2 +- derive/LICENSE | 1 + derive/src/argument.rs | 3 +++ derive/src/attributes.rs | 3 +++ derive/src/flags.rs | 3 +++ derive/src/help.rs | 3 +++ derive/src/help_parser.rs | 2 -- derive/src/initial.rs | 3 +++ derive/src/lib.rs | 3 +++ src/error.rs | 3 +++ src/lib.rs | 3 +++ src/value.rs | 3 +++ 12 files changed, 29 insertions(+), 3 deletions(-) create mode 120000 derive/LICENSE diff --git a/LICENSE b/LICENSE index db1aed9..21bd444 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) Terts Diepraam +Copyright (c) uutils developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/derive/LICENSE b/derive/LICENSE new file mode 120000 index 0000000..ea5b606 --- /dev/null +++ b/derive/LICENSE @@ -0,0 +1 @@ +../LICENSE \ No newline at end of file diff --git a/derive/src/argument.rs b/derive/src/argument.rs index 3e14da7..3854be5 100644 --- a/derive/src/argument.rs +++ b/derive/src/argument.rs @@ -1,3 +1,6 @@ +// For the full copyright and license information, please view the LICENSE +// file that was distributed with this source code. + use std::ops::RangeInclusive; use proc_macro2::TokenStream; diff --git a/derive/src/attributes.rs b/derive/src/attributes.rs index 2a19604..e8c915c 100644 --- a/derive/src/attributes.rs +++ b/derive/src/attributes.rs @@ -1,3 +1,6 @@ +// For the full copyright and license information, please view the LICENSE +// file that was distributed with this source code. + use std::ops::RangeInclusive; use syn::{ diff --git a/derive/src/flags.rs b/derive/src/flags.rs index b999f0a..7cab9e5 100644 --- a/derive/src/flags.rs +++ b/derive/src/flags.rs @@ -1,3 +1,6 @@ +// For the full copyright and license information, please view the LICENSE +// file that was distributed with this source code. + use proc_macro2::TokenStream; use quote::quote; diff --git a/derive/src/help.rs b/derive/src/help.rs index a853b77..8348ad0 100644 --- a/derive/src/help.rs +++ b/derive/src/help.rs @@ -1,3 +1,6 @@ +// For the full copyright and license information, please view the LICENSE +// file that was distributed with this source code. + use std::{ io::Read, path::{Path, PathBuf}, diff --git a/derive/src/help_parser.rs b/derive/src/help_parser.rs index 8faa4e6..3d9e5ae 100644 --- a/derive/src/help_parser.rs +++ b/derive/src/help_parser.rs @@ -1,5 +1,3 @@ -// This file is part of the uutils coreutils package. -// // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. diff --git a/derive/src/initial.rs b/derive/src/initial.rs index 1cb0e83..ced4032 100644 --- a/derive/src/initial.rs +++ b/derive/src/initial.rs @@ -1,3 +1,6 @@ +// For the full copyright and license information, please view the LICENSE +// file that was distributed with this source code. + use syn::{ parse::{Parse, ParseStream}, parse_macro_input, Data, DeriveInput, Fields, Token, diff --git a/derive/src/lib.rs b/derive/src/lib.rs index e78c358..8c3d4cc 100644 --- a/derive/src/lib.rs +++ b/derive/src/lib.rs @@ -1,3 +1,6 @@ +// For the full copyright and license information, please view the LICENSE +// file that was distributed with this source code. + mod argument; mod attributes; mod flags; diff --git a/src/error.rs b/src/error.rs index 9c6c2a0..e2c9faa 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,3 +1,6 @@ +// For the full copyright and license information, please view the LICENSE +// file that was distributed with this source code. + use std::{ error::Error as StdError, ffi::OsString, diff --git a/src/lib.rs b/src/lib.rs index 80a95df..9a86a0a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,6 @@ +// For the full copyright and license information, please view the LICENSE +// file that was distributed with this source code. + //! Argument parsing for the uutils coreutils project //! //! This crate provides the argument parsing for the diff --git a/src/value.rs b/src/value.rs index e891d0b..e95b9a4 100644 --- a/src/value.rs +++ b/src/value.rs @@ -1,3 +1,6 @@ +// For the full copyright and license information, please view the LICENSE +// file that was distributed with this source code. + use crate::error::Error; use std::{ ffi::{OsStr, OsString},