mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Andreas Pretzsch <apr@cn-eng.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 0/2] license-report: also create CSV lists
Date: Wed, 28 Mar 2018 22:23:05 +0200	[thread overview]
Message-ID: <1522268587-2408-1-git-send-email-apr@cn-eng.de> (raw)

When calling "ptxdist make license-report", license reports for
both the target- and the host-tools-packages are created.

Based upon the license info files created during the regular build
process, LaTeX files are generated, which are then converted into
matching PDFs, containing package informations, license tags as well
as the licenses themselves.
These are called "report/license-report.pdf" respectively
"report/license-report-tools.pdf".

Extend this process to also create a list of these packages with the
most basic fields as CSV:
    "name"|"version"|"licenses"|"flags"
    "somepackage"|"1.2.3"|"Apache-2.0"|"attribution"
    [...]

These are called "report/license-report.csv" respectively
"report/license-report-tools.csv".

This minimal report is much more suited for a comparison of different
builds resp. releases, and can be easily imported into some spreadsheet.
Which in turn is useful both for developers and legal department.
Keeping it minimal (e.g. no URL) most likely avoids CSV escaping hell.

Tested with PTXdist 2016.01.0, but given the minimal differences
against PTXdist 2018.03.0, I assume this is still fine. Albeit I did
not test it.

It is split into two commits (to ease local maintenance), but of course
could be squashed into one.
Also the commit subjects could be adapted, removing "scripts/lib", or
if squashed even simply to "license-report: also create CSV lists".

While all of this is working (and sufficient for my use case), it is
also a bit of a RFC. Just don't expect I'll do some _substantial_ rework
or improvement in a timely fashion...
So, feel free to squash and/or fixup at your own discretion.

Last, sorry for having this one delayed a year and a half before sending
mainline...

Andreas Pretzsch (2):
  scripts/lib: make_world_license: add suffix "_tex" to
    ptxd_make_world_license_write
  scripts/lib: also create CSV lists on "ptxdist make license-report"

 scripts/lib/ptxd_make_license_report.sh | 21 +++++++++++
 scripts/lib/ptxd_make_world_license.sh  | 65 +++++++++++++++++++++++++++++++--
 2 files changed, 83 insertions(+), 3 deletions(-)

-- 
2.9.3


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2018-03-28 20:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-28 20:23 Andreas Pretzsch [this message]
2018-03-28 20:23 ` [ptxdist] [PATCH 1/2] scripts/lib: make_world_license: add suffix "_tex" to ptxd_make_world_license_write Andreas Pretzsch
2018-03-28 20:23 ` [ptxdist] [PATCH 2/2] scripts/lib: also create CSV lists on "ptxdist make license-report" Andreas Pretzsch
2018-03-29  9:46   ` Michael Olbrich
2018-03-29 12:08     ` Andreas Pretzsch
2018-03-29 13:51       ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1522268587-2408-1-git-send-email-apr@cn-eng.de \
    --to=apr@cn-eng.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox