Go licenses as markdown template

This commit is contained in:
William Bouzourène 2025-05-11 16:21:38 +02:00
parent d37958fc37
commit 614f15e1f1
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
12 changed files with 1064 additions and 1587 deletions

8
licenses/fetch_licenses.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
TPL_LOCATION="$SCRIPT_DIR/template.md"
STATIC_LOCATION="$SCRIPT_DIR/../static/licenses.md"
PROJECT_URL="git.readonly.ch/bouzoure/pop-camarades"
go-licenses report "$PROJECT_URL" --template "$TPL_LOCATION" > "$STATIC_LOCATION"