Commit 9cc9d881 authored by Michael Shigorin's avatar Michael Shigorin

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
parent c6241611
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment