From 9cc9d881430c1cbaa7ed3c91947f1e57352e063e Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Mon, 11 Jun 2018 11:15:49 +0300 Subject: [PATCH] reports.mk: added "contents" one "Provide iso contents file" has been a long-standing feature request regarding both starterkits and distros proper; release managers used to compensate this with their own scripts. Suggested-by: sem@, legion@ and someone else too --- reports.mk | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/reports.mk b/reports.mk index cf837da7..99461eac 100644 --- a/reports.mk +++ b/reports.mk @@ -17,7 +17,7 @@ ifneq (1,$(NUM_TARGETS)) SHORTEN := >/dev/null endif -all: reports/targets reports/scripts reports/cleanlog +all: reports/targets reports/scripts reports/cleanlog reports/contents @if [ -n "$(IMAGE_OUTPATH)" ]; then \ cp -a "$(REPORTDIR)" "$(LOGDIR)/$(IMAGE_OUTFILE).reports"; \ fi @@ -79,6 +79,18 @@ reports/targets: reports/prep fi $(SHORTEN); \ mv "$(REPORT_PATH)" "$(REPORTDIR)/$(@F).log" +reports/contents: reports/prep + @case $(IMAGE_OUTFILE) in \ + *.iso) \ + if type -t isoinfo >&/dev/null; then \ + OUT="$(REPORTDIR)/$(@F).txt"; \ + isoinfo -f -R -i $(IMAGE_OUTPATH) > $$OUT && \ + echo "** contents list: $$OUT" $(SHORTEN); \ + else \ + echo "reports.mk: missing isoinfo" >&2; \ + fi; \ + esac + else all:; @: endif