From 65b94260faa02aac6522411ac17dcf98cc096935 Mon Sep 17 00:00:00 2001 From: Michel Lind Date: Thu, 4 Jan 2024 17:27:46 -0600 Subject: [PATCH] Ship copyright and license files with split crates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that `procfs` and `procfs-core` are individual crates located in subdirectories of the repo, make sure the copyright and license texts are symlinked so they get packaged when the crates are published. Also fix typoo in COPYRIGHT.txt ``` michel in procfs/procfs-core on  add-license [!?] via 🐍 v3.11.6 (.venv311) via 🦀 v1.73.0 ⬢ [fedora-toolbox:38] ❯ cargo package --allow-dirty --no-verify Packaging procfs-core v0.16.0 (/home/michel/src/github/eminence/procfs/procfs-core) Packaged 32 files, 329.5KiB (78.3KiB compressed) michel in procfs/procfs-core on  add-license [!?] via 🐍 v3.11.6 (.venv311) via 🦀 v1.73.0 ⬢ [fedora-toolbox:38] ❯ bsdtar tf ../target/package/procfs-core-0.16.0.crate | grep COPYRIGHT procfs-core-0.16.0/COPYRIGHT.txt michel in procfs/procfs-core on  add-license [!?] via 🐍 v3.11.6 (.venv311) via 🦀 v1.73.0 ⬢ [fedora-toolbox:38] ❯ bsdtar tf ../target/package/procfs-core-0.16.0.crate | grep LICENSE procfs-core-0.16.0/LICENSE-APACHE procfs-core-0.16.0/LICENSE-MIT ``` ``` michel in procfs/procfs on  add-license [?] via 🐍 v3.11.6 (.venv311) via 🦀 v1.73.0 ⬢ [fedora-toolbox:38] ❯ cargo package --allow-dirty --no-verify Packaging procfs v0.16.0 (/home/michel/src/github/eminence/procfs/procfs) Updating crates.io index Packaged 48 files, 266.1KiB (71.7KiB compressed) michel in procfs/procfs on  add-license [?] via 🐍 v3.11.6 (.venv311) via 🦀 v1.73.0 took 2s ⬢ [fedora-toolbox:38] ❯ bsdtar tf ../target/package/procfs-0.16.0.crate | grep COPYRIGHT procfs-0.16.0/COPYRIGHT.txt michel in procfs/procfs on  add-license [?] via 🐍 v3.11.6 (.venv311) via 🦀 v1.73.0 ⬢ [fedora-toolbox:38] ❯ bsdtar tf ../target/package/procfs-0.16.0.crate | grep LICENSE procfs-0.16.0/LICENSE-APACHE procfs-0.16.0/LICENSE-MIT ``` Signed-off-by: Michel Lind --- COPYRIGHT.txt | 2 +- procfs-core/COPYRIGHT.txt | 1 + procfs-core/LICENSE-APACHE | 1 + procfs-core/LICENSE-MIT | 1 + procfs/COPYRIGHT.txt | 1 + procfs/LICENSE-APACHE | 1 + procfs/LICENSE-MIT | 1 + 7 files changed, 7 insertions(+), 1 deletion(-) create mode 120000 procfs-core/COPYRIGHT.txt create mode 120000 procfs-core/LICENSE-APACHE create mode 120000 procfs-core/LICENSE-MIT create mode 120000 procfs/COPYRIGHT.txt create mode 120000 procfs/LICENSE-APACHE create mode 120000 procfs/LICENSE-MIT diff --git a/COPYRIGHT.txt b/COPYRIGHT.txt index d1ec833c..f22851cf 100644 --- a/COPYRIGHT.txt +++ b/COPYRIGHT.txt @@ -1,6 +1,6 @@ The source code for the procfs library is copyright by Andrew Chin, 2019, and other contributors. -It is icensed under either of +It is licensed under either of * Apache License, Version 2.0, http://www.apache.org/licenses/LICENSE-2.0 * MIT license, http://opensource.org/licenses/MIT diff --git a/procfs-core/COPYRIGHT.txt b/procfs-core/COPYRIGHT.txt new file mode 120000 index 00000000..c3576f84 --- /dev/null +++ b/procfs-core/COPYRIGHT.txt @@ -0,0 +1 @@ +../COPYRIGHT.txt \ No newline at end of file diff --git a/procfs-core/LICENSE-APACHE b/procfs-core/LICENSE-APACHE new file mode 120000 index 00000000..965b606f --- /dev/null +++ b/procfs-core/LICENSE-APACHE @@ -0,0 +1 @@ +../LICENSE-APACHE \ No newline at end of file diff --git a/procfs-core/LICENSE-MIT b/procfs-core/LICENSE-MIT new file mode 120000 index 00000000..76219eb7 --- /dev/null +++ b/procfs-core/LICENSE-MIT @@ -0,0 +1 @@ +../LICENSE-MIT \ No newline at end of file diff --git a/procfs/COPYRIGHT.txt b/procfs/COPYRIGHT.txt new file mode 120000 index 00000000..c3576f84 --- /dev/null +++ b/procfs/COPYRIGHT.txt @@ -0,0 +1 @@ +../COPYRIGHT.txt \ No newline at end of file diff --git a/procfs/LICENSE-APACHE b/procfs/LICENSE-APACHE new file mode 120000 index 00000000..965b606f --- /dev/null +++ b/procfs/LICENSE-APACHE @@ -0,0 +1 @@ +../LICENSE-APACHE \ No newline at end of file diff --git a/procfs/LICENSE-MIT b/procfs/LICENSE-MIT new file mode 120000 index 00000000..76219eb7 --- /dev/null +++ b/procfs/LICENSE-MIT @@ -0,0 +1 @@ +../LICENSE-MIT \ No newline at end of file