Add citation.cff

This commit is contained in:
Félix Saparelli 2021-07-29 00:45:13 +12:00
parent aa99fa1674
commit 3208652ed8
No known key found for this signature in database
GPG Key ID: B948C4BAE44FC474
4 changed files with 44 additions and 0 deletions

20
CITATION.cff Normal file
View File

@ -0,0 +1,20 @@
# YAML 1.2
---
cff-version: "1.1.0"
message: |
If you use this software, please cite it using these metadata.
The library has its own CITATION.cff file in lib/.
title: Watchexec (command-line tool)
version: 1.17.0
date-released: 2021-07-22
repository-code: https://github.com/watchexec/watchexec
license: Apache-2.0
authors:
- family-names: Green
given-names: Matt
- family-names: Saparelli
given-names: Félix
...

View File

@ -43,6 +43,8 @@ echo "Next version to be $newver ($date), creating..."
sed -E -i "s/version=\"$extver.0\"/version=\"$newver.0\"/1" cli/watchexec.exe.manifest
sed -E -i "s/watchexec(.exe)? $extver/watchexec\1 $newver/" cli/tests/snapshots/help__*
sed -E -i "s/^version = \"$extver\"/version = \"$newver\"/1" cli/Cargo.toml
sed -E -i "s/^version: \"$extver\"/version: \"$newver\"/1" CITATION.cff
sed -E -i "s/^date-released: .+$/date-released: $date/1" CITATION.cff
cargo check

View File

@ -41,6 +41,8 @@ date=$(date +%Y-%m-%d)
echo "Next version to be $newver ($date), creating..."
sed -E -i "s/^version = \"$extver\"/version = \"$newver\"/1" lib/Cargo.toml
sed -E -i "s/^version: \"$extver\"/version: \"$newver\"/1" lib/CITATION.cff
sed -E -i "s/^date-released: .+$/date-released: $date/1" lib/CITATION.cff
cargo check

20
lib/CITATION.cff Normal file
View File

@ -0,0 +1,20 @@
# YAML 1.2
---
cff-version: "1.1.0"
message: |
If you use this software, please cite it using these metadata.
The command-line tool has its own CITATION.cff file.
title: Watchexec (library)
version: 1.17.1
date-released: 2021-07-22
repository-code: https://github.com/watchexec/watchexec
license: Apache-2.0
authors:
- family-names: Green
given-names: Matt
- family-names: Saparelli
given-names: Félix
...