Automate go licence fetching

This commit is contained in:
William Bouzourène 2025-01-05 15:48:30 +01:00
parent e6b6298833
commit 90cf5a5815
4 changed files with 4616 additions and 0 deletions

View file

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