Skip to repository content27 lines · 714 B · text
tenant.openagents/omega
No repository description is available.
OpenAgents Git authority 2026-07-28T01:28:46.124Z Public web read
NIP-34 coordinate
30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omegaMaintainersHidden in public view
References2 branches · 1 tag
Read-only clone
git clone https://openagents.com/git/tenant.openagents/omega.gitBrowse files
generate-licenses-csv
1#!/usr/bin/env bash
2
3set -euo pipefail
4
5CARGO_ABOUT_VERSION="0.8.2"
6OUTPUT_FILE="${1:-$(pwd)/assets/licenses.csv}"
7TEMPLATE_FILE="script/licenses/template.csv.hbs"
8
9if ! cargo about --version | grep "cargo-about $CARGO_ABOUT_VERSION" 2>&1 > /dev/null; then
10 echo "Installing cargo-about@$CARGO_ABOUT_VERSION..."
11 cargo install "cargo-about@$CARGO_ABOUT_VERSION"
12else
13 echo "cargo-about@$CARGO_ABOUT_VERSION is already installed."
14fi
15
16echo "Generating cargo licenses"
17set -x
18cargo about generate \
19 --fail \
20 -c script/licenses/zed-licenses.toml \
21 $TEMPLATE_FILE \
22 | awk 'NR==1{print;next} NF{print | "sort"}' \
23 > "$OUTPUT_FILE"
24set +x
25
26echo "generate-licenses-csv completed. See $OUTPUT_FILE"
27