fastfetch: update to 2.30.1
[oi-userland.git] / make-rules / component-report
blob25ef35c531cbe8e0ba3b75dc32f753d7d9845829
2 PKG_REPORTS=$(CANONICAL_MANIFESTS:%.p5m=$(BUILD_DIR)/%.pkg-report)
4 HGWEB_BASE_URL = http://userland.us.oracle.com/hg/file/tip/
5 ARIA_BASE_URL = http://people.us.oracle.com/pls/oracle/find_person?p_string=
6 ARC_BASE_URL = http://psarc.us.oracle.com/
8 REPORT_TRANSFORMS = $(WS_TOP)/transforms/report
9 CDIR=$(COMPONENT_DIR:$(WS_TOP)/%=%)
11 component-report:       $(BUILD_DIR)/component-report
13 $(BUILD_DIR)/component-report:  $(BUILD_DIR)/package-info
14         @echo "<tr>" >$@
15         @echo "<td><a href='$(COMPONENT_PROJECT_URL)'>$(COMPONENT_NAME)</a></td>" >>$@
16         @echo "<td><a href='$(COMPONENT_ARCHIVE_URL)'>$(COMPONENT_VERSION)</a></td>" >>$@
17         @echo "<td><a href='$(HGWEB_BASE_URL)$(CDIR)'>$(CDIR)</a></td>" >>$@
18         @echo "<td>" >>$@ ; for pkg in $(PACKAGE) ; do \
19              echo "$$pkg<br>" >>$@ ; \
20          done ; echo "</td>" >>$@
21         @echo "<td>" >>$@ ; for arc in $(ARC_CASE) ; do \
22              echo "<a href='$(ARC_BASE_URL)$$arc'>$$arc</a><br>" >>$@ ; \
23          done ; echo "</td>" >>$@
24         @echo "<td>" >>$@ ; for license in $(LICENSE) ; do \
25              echo "$$license<br>" >>$@ ; \
26          done ; echo "</td>" >>$@
27         @echo "<td>$(TPNO)</td>" >>$@
28         @echo "<td><a href='$(ARIA_BASE_URL)$(RESPONSIBLE_ENGINEER)'>$(RESPONSIBLE_ENGINEER)</a></td>" >>$@
29         @echo "<td><a href='$(ARIA_BASE_URL)$(RESPONSIBLE_MANAGER)'>$(RESPONSIBLE_MANAGER)</a></td>" >>$@
30         @echo "<td>$(TEAM)</td>" >>$@
31         @echo "</tr>" >>$@
33 $(BUILD_DIR)/package-info:      $(PKG_REPORTS)
34         @cat $(PKG_REPORTS) | sort -u >$@
36 $(BUILD_DIR)/component-info:    $(PKG_REPORTS)
37         @echo "COMPONENT_NAME=\"$(COMPONENT_NAME)\"" >$@
38         @echo "COMPONENT_VERSION=\"$(COMPONENT_VERSION)\"" >>$@
39         @echo "COMPONENT_PROJECT_URL=\"$(COMPONENT_PROJECT_URL)\"" >>$@
40         @echo "COMPONENT_ARCHIVE_URL=\"$(COMPONENT_ARCHIVE_URL)\"" >>$@
41         @echo "COMPONENT_DIR=\"$(CDIR)\"" >>$@
42         @echo "TPNO=\"$(TPNO)\"" >>$@
43         @echo "RESPONSIBLE_ENGINEER=\"$(RESPONSIBLE_ENGINEER)\"" >>$@
44         @echo "RESPONSIBLE_MANAGER=\"$(RESPONSIBLE_MANAGER)\"" >>$@
45         @echo "TEAM=\"$(TEAM)\"" >>$@
47 $(BUILD_DIR)/%.pkg-report:      %.p5m $(BUILD_DIR)
48         @$(PKGMOGRIFY) $(PKG_OPTIONS) -P $@ $< \
49                 $(REPORT_TRANSFORMS) >/dev/null
51 include $(BUILD_DIR)/package-info