Skip to content

Commit c3f9e19

Browse files
committed
all: normalize license notice in all *.rs files
1 parent 3fc36ee commit c3f9e19

File tree

163 files changed

+611
-618
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+611
-618
lines changed

build.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
5+
16
// spell-checker:ignore (vars) krate
27

38
use std::env;

src/uu/base32/src/base32.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file is part of the uutils coreutils package.
22
//
3-
// For the full copyright and license information, please view the LICENSE file
4-
// that was distributed with this source code.
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55

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

src/uu/base32/src/base_common.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file is part of the uutils coreutils package.
22
//
3-
// For the full copyright and license information, please view the LICENSE file
4-
// that was distributed with this source code.
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55

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

src/uu/base64/src/base64.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file is part of the uutils coreutils package.
22
//
3-
// For the full copyright and license information, please view the LICENSE file
4-
// that was distributed with this source code.
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55

66
use uu_base32::base_common;
77
pub use uu_base32::uu_app;

src/uu/basenc/src/basenc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file is part of the uutils coreutils package.
22
//
3-
// For the full copyright and license information, please view the LICENSE file
4-
// that was distributed with this source code.
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55

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

src/uu/chroot/src/error.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE
4-
// * file that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55
// spell-checker:ignore NEWROOT Userspec userspec
66
//! Errors returned by chroot.
77
use std::fmt::Display;

src/uu/cksum/src/cksum.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This file is part of the uutils coreutils package.
22
//
3-
// For the full copyright and license information, please view the LICENSE
3+
// For the full copyright and license information, please view the LICENSE
44
// file that was distributed with this source code.
55

66
// spell-checker:ignore (ToDO) fname, algo

src/uu/cp/src/copydir.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE
4-
// * file that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55
// spell-checker:ignore TODO canonicalizes direntry pathbuf symlinked
66
//! Recursively copy the contents of a directory.
77
//!

src/uu/cp/src/cp.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
#![allow(clippy::missing_safety_doc)]
2-
#![allow(clippy::extra_unused_lifetimes)]
3-
41
// This file is part of the uutils coreutils package.
52
//
6-
// For the full copyright and license information, please view the LICENSE file
7-
// that was distributed with this source code.
8-
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
95
// spell-checker:ignore (ToDO) copydir ficlone fiemap ftruncate linkgs lstat nlink nlinks pathbuf pwrite reflink strs xattrs symlinked deduplicated advcpmv nushell
6+
#![allow(clippy::missing_safety_doc)]
7+
#![allow(clippy::extra_unused_lifetimes)]
108

119
use quick_error::quick_error;
1210
use std::borrow::Cow;

src/uu/cp/src/platform/linux.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE
4-
// * file that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55
// spell-checker:ignore ficlone reflink ftruncate pwrite fiemap
66
use std::fs::{File, OpenOptions};
77
use std::io::Read;

src/uu/cp/src/platform/macos.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE
4-
// * file that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55
// spell-checker:ignore reflink
66
use std::ffi::CString;
77
use std::fs::{self, File};

src/uu/cp/src/platform/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE
4-
// * file that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55
#[cfg(target_os = "macos")]
66
mod macos;
77
#[cfg(target_os = "macos")]

src/uu/cp/src/platform/other.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE
4-
// * file that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55
// spell-checker:ignore reflink
66
use std::fs;
77
use std::path::Path;

src/uu/dd/src/blocks.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE
4-
// * file that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55

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

src/uu/dd/src/numbers.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE
4-
// * file that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55
/// Functions for formatting a number as a magnitude and a unit suffix.
66
77
/// The first ten powers of 1024.

src/uu/dd/src/progress.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE
4-
// * file that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55
// spell-checker:ignore btotal sigval
66
//! Read and write progress tracking for dd.
77
//!

src/uu/df/src/blocks.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE
4-
// * file that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55
//! Types for representing and displaying block sizes.
66
use crate::{OPT_BLOCKSIZE, OPT_PORTABILITY};
77
use clap::ArgMatches;

src/uu/df/src/columns.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE
4-
// * file that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55
// spell-checker:ignore itotal iused iavail ipcent pcent squashfs
66
use crate::{OPT_INODES, OPT_OUTPUT, OPT_PRINT_TYPE};
77
use clap::{parser::ValueSource, ArgMatches};

src/uu/df/src/df.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file is part of the uutils coreutils package.
22
//
3-
// For the full copyright and license information, please view the LICENSE file
4-
// that was distributed with this source code.
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55
// spell-checker:ignore itotal iused iavail ipcent pcent tmpfs squashfs lofs
66
mod blocks;
77
mod columns;

src/uu/df/src/filesystem.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE
4-
// * file that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55
//! Provides a summary representation of a filesystem.
66
//!
77
//! A [`Filesystem`] struct represents a device containing a

src/uu/df/src/table.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE
4-
// * file that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55
// spell-checker:ignore tmpfs Pcent Itotal Iused Iavail Ipcent
66
//! The filesystem usage data table.
77
//!

src/uu/dir/src/dir.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE file
4-
// * that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55

66
use clap::Command;
77
use std::ffi::OsString;

src/uu/du/src/du.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE
4-
// * file that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55

66
use chrono::prelude::DateTime;
77
use chrono::Local;

src/uu/expand/src/expand.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// This file is part of the uutils coreutils package.
22
//
3-
//
43
// For the full copyright and license information, please view the LICENSE
54
// file that was distributed with this source code.
65

src/uu/expr/src/expr.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
//* This file is part of the uutils coreutils package.
2-
//*
3-
//* For the full copyright and license information, please view the LICENSE
4-
//* file that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55

66
use clap::{crate_version, Arg, ArgAction, Command};
77
use uucore::{

src/uu/expr/src/syntax_tree.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
//* This file is part of the uutils coreutils package.
2-
//*
3-
//* For the full copyright and license information, please view the LICENSE
4-
//* file that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55

66
//!
77
//! Here we employ shunting-yard algorithm for building AST from tokens according to operators' precedence and associative-ness.

src/uu/expr/src/tokens.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
//* This file is part of the uutils coreutils package.
2-
//*
3-
//* For the full copyright and license information, please view the LICENSE
4-
//* file that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55

66
//!
77
//! The following tokens are present in the expr grammar:

src/uu/factor/build.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE file
4-
// * that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55

66
//! Generate a table of the multiplicative inverses of p_i mod 2^64
77
//! for the first 1027 odd primes (all 13 bit and smaller primes).

src/uu/factor/sieve.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE file
4-
// * that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55

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

src/uu/factor/src/cli.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE file
4-
// * that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55

66
use std::error::Error;
77
use std::fmt::Write as FmtWrite;

src/uu/factor/src/factor.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE file
4-
// * that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55

66
use smallvec::SmallVec;
77
use std::cell::RefCell;

src/uu/factor/src/miller_rabin.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE file
4-
// * that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55

66
// spell-checker:ignore (URL) appspot
77

src/uu/factor/src/numeric/gcd.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE file
4-
// * that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55

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

src/uu/factor/src/numeric/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// * This file is part of the uutils coreutils package.
2-
// *
3-
// * For the full copyright and license information, please view the LICENSE file
4-
// * that was distributed with this source code.
1+
// This file is part of the uutils coreutils package.
2+
//
3+
// For the full copyright and license information, please view the LICENSE
4+
// file that was distributed with this source code.
55

66
mod gcd;
77
pub use gcd::gcd;

0 commit comments

Comments
 (0)