Added cargo-about auto-install and CI steps
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
cargo about generate --workspace -o assets/licenses.md -c script/licenses/zed-licenses.toml script/licenses/template.hbs.md
|
||||
|
||||
set -e
|
||||
|
||||
[[ "$(cargo about --version)" == "cargo-about 0.5.2" ]] || cargo install cargo-about --locked --git https://github.com/zed-industries/cargo-about --branch error-code-on-warn
|
||||
|
||||
cargo about generate --fail-on-missing-license -o assets/licenses.md -c script/licenses/zed-licenses.toml script/licenses/template.hbs.md
|
||||
|
||||
# cargo about automatically html-escapes all output, so we need to undo it here:
|
||||
sed -i '' 's/"/"/g' assets/licenses.md
|
||||
@@ -7,4 +12,4 @@ sed -i '' 's/'/'\''/g' assets/licenses.md # `'\''` ends the string, appends
|
||||
sed -i '' 's/=/=/g' assets/licenses.md
|
||||
sed -i '' 's/`/`/g' assets/licenses.md
|
||||
sed -i '' 's/</</g' assets/licenses.md
|
||||
sed -i '' 's/>/>/g' assets/licenses.md
|
||||
sed -i '' 's/>/>/g' assets/licenses.md
|
||||
@@ -34,4 +34,4 @@ checksum = '5b698ca13897be3afdb7174256fa1574f8c6892b8bea1a66dd6469d3fe27885a'
|
||||
license = "BSD-3-Clause"
|
||||
[[fuchsia-cprng.clarify.files]]
|
||||
path = 'LICENSE'
|
||||
checksum = '03b114f53e6587a398931762ee11e2395bfdba252a329940e2c8c9e81813845b'
|
||||
checksum = '03b114f53e6587a398931762ee11e2395bfdba252a329940e2c8c9e81813845b'
|
||||
|
||||
Reference in New Issue
Block a user