From c2f8989c3e8337d10ae936c7ca7c163ab9819854 Mon Sep 17 00:00:00 2001 From: Stefan Dresselhaus Date: Mon, 18 Jul 2022 18:35:51 +0200 Subject: [PATCH] added stac-export-licenses --- README.md | 1 + stack-export-licenses.fish | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 stack-export-licenses.fish diff --git a/README.md b/README.md index 8dd3762..a35f4d0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # snippets +Random assortments of snippets... diff --git a/stack-export-licenses.fish b/stack-export-licenses.fish new file mode 100755 index 0000000..db6b751 --- /dev/null +++ b/stack-export-licenses.fish @@ -0,0 +1,7 @@ +#!/usr/bin/fish +for i in (stack ls dependencies --license --external | cut -d ' ' -f 2 | sort -u); + echo "# Licensed under $i:"; + stack ls dependencies --license --external | grep $i | cut -d ' ' -f 1 | sort -u | sed 's/^/- /'; + echo ""; + echo ""; +end > dependency-licenses.md