Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All: normalize license notice in all *.rs files #5199

Merged
merged 1 commit into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// 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.

// spell-checker:ignore (vars) krate

use std::env;
Expand Down
4 changes: 2 additions & 2 deletions src/uu/base32/src/base32.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// 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.
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.

use std::io::{stdin, Read};

Expand Down
4 changes: 2 additions & 2 deletions src/uu/base32/src/base_common.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// 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.
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.

use std::io::{stdout, Read, Write};

Expand Down
4 changes: 2 additions & 2 deletions src/uu/base64/src/base64.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// 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.
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.

use uu_base32::base_common;
pub use uu_base32::uu_app;
Expand Down
4 changes: 2 additions & 2 deletions src/uu/basenc/src/basenc.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// 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.
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.

//spell-checker:ignore (args) lsbf msbf

Expand Down
8 changes: 4 additions & 4 deletions src/uu/chroot/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.
// spell-checker:ignore NEWROOT Userspec userspec
//! Errors returned by chroot.
use std::fmt::Display;
Expand Down
2 changes: 1 addition & 1 deletion src/uu/cksum/src/cksum.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.

// spell-checker:ignore (ToDO) fname, algo
Expand Down
8 changes: 4 additions & 4 deletions src/uu/cp/src/copydir.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.
// spell-checker:ignore TODO canonicalizes direntry pathbuf symlinked
//! Recursively copy the contents of a directory.
//!
Expand Down
10 changes: 4 additions & 6 deletions src/uu/cp/src/cp.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#![allow(clippy::missing_safety_doc)]
#![allow(clippy::extra_unused_lifetimes)]

// 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.

// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (ToDO) copydir ficlone fiemap ftruncate linkgs lstat nlink nlinks pathbuf pwrite reflink strs xattrs symlinked deduplicated advcpmv nushell
#![allow(clippy::missing_safety_doc)]
#![allow(clippy::extra_unused_lifetimes)]

use quick_error::quick_error;
use std::borrow::Cow;
Expand Down
8 changes: 4 additions & 4 deletions src/uu/cp/src/platform/linux.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.
// spell-checker:ignore ficlone reflink ftruncate pwrite fiemap
use std::fs::{File, OpenOptions};
use std::io::Read;
Expand Down
8 changes: 4 additions & 4 deletions src/uu/cp/src/platform/macos.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.
// spell-checker:ignore reflink
use std::ffi::CString;
use std::fs::{self, File};
Expand Down
8 changes: 4 additions & 4 deletions src/uu/cp/src/platform/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.
#[cfg(target_os = "macos")]
mod macos;
#[cfg(target_os = "macos")]
Expand Down
8 changes: 4 additions & 4 deletions src/uu/cp/src/platform/other.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.
// spell-checker:ignore reflink
use std::fs;
use std::path::Path;
Expand Down
8 changes: 4 additions & 4 deletions src/uu/dd/src/blocks.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.

// spell-checker:ignore datastructures rstat rposition cflags ctable

Expand Down
8 changes: 4 additions & 4 deletions src/uu/dd/src/numbers.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.
/// Functions for formatting a number as a magnitude and a unit suffix.

/// The first ten powers of 1024.
Expand Down
8 changes: 4 additions & 4 deletions src/uu/dd/src/progress.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.
// spell-checker:ignore btotal sigval
//! Read and write progress tracking for dd.
//!
Expand Down
8 changes: 4 additions & 4 deletions src/uu/df/src/blocks.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.
//! Types for representing and displaying block sizes.
use crate::{OPT_BLOCKSIZE, OPT_PORTABILITY};
use clap::ArgMatches;
Expand Down
8 changes: 4 additions & 4 deletions src/uu/df/src/columns.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.
// spell-checker:ignore itotal iused iavail ipcent pcent squashfs
use crate::{OPT_INODES, OPT_OUTPUT, OPT_PRINT_TYPE};
use clap::{parser::ValueSource, ArgMatches};
Expand Down
4 changes: 2 additions & 2 deletions src/uu/df/src/df.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// 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.
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore itotal iused iavail ipcent pcent tmpfs squashfs lofs
mod blocks;
mod columns;
Expand Down
8 changes: 4 additions & 4 deletions src/uu/df/src/filesystem.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.
//! Provides a summary representation of a filesystem.
//!
//! A [`Filesystem`] struct represents a device containing a
Expand Down
8 changes: 4 additions & 4 deletions src/uu/df/src/table.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.
// spell-checker:ignore tmpfs Pcent Itotal Iused Iavail Ipcent
//! The filesystem usage data table.
//!
Expand Down
8 changes: 4 additions & 4 deletions src/uu/dir/src/dir.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.

use clap::Command;
use std::ffi::OsString;
Expand Down
8 changes: 4 additions & 4 deletions src/uu/du/src/du.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.

use chrono::prelude::DateTime;
use chrono::Local;
Expand Down
1 change: 0 additions & 1 deletion src/uu/expand/src/expand.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// 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.

Expand Down
8 changes: 4 additions & 4 deletions src/uu/expr/src/expr.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//* 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.
// 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.

use clap::{crate_version, Arg, ArgAction, Command};
use uucore::{
Expand Down
8 changes: 4 additions & 4 deletions src/uu/expr/src/syntax_tree.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//* 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.
// 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.

//!
//! Here we employ shunting-yard algorithm for building AST from tokens according to operators' precedence and associative-ness.
Expand Down
8 changes: 4 additions & 4 deletions src/uu/expr/src/tokens.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//* 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.
// 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.

//!
//! The following tokens are present in the expr grammar:
Expand Down
8 changes: 4 additions & 4 deletions src/uu/factor/build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.

//! Generate a table of the multiplicative inverses of p_i mod 2^64
//! for the first 1027 odd primes (all 13 bit and smaller primes).
Expand Down
8 changes: 4 additions & 4 deletions src/uu/factor/sieve.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.

// spell-checker:ignore (ToDO) filts, minidx, minkey paridx

Expand Down
8 changes: 4 additions & 4 deletions src/uu/factor/src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.

use std::error::Error;
use std::fmt::Write as FmtWrite;
Expand Down
8 changes: 4 additions & 4 deletions src/uu/factor/src/factor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.

use smallvec::SmallVec;
use std::cell::RefCell;
Expand Down
8 changes: 4 additions & 4 deletions src/uu/factor/src/miller_rabin.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.

// spell-checker:ignore (URL) appspot

Expand Down
8 changes: 4 additions & 4 deletions src/uu/factor/src/numeric/gcd.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.

// spell-checker:ignore (vars) kgcdab gcdac gcdbc

Expand Down
8 changes: 4 additions & 4 deletions src/uu/factor/src/numeric/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// * 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.
// 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.

mod gcd;
pub use gcd::gcd;
Expand Down
Loading
Loading