fritzkink
2023-12-27 706019354bab81fc3f01995caf1ae1a2dfa346cf
commit | author | age
e24028 1
RB 2 PKG_REPORTS=$(CANONICAL_MANIFESTS:%.p5m=$(BUILD_DIR)/%.pkg-report)
3
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/
6dbd75 7 BUGDB_URL = http://userland.us.oracle.com/bugdb?cat-subcat=
e24028 8
RB 9 REPORT_TRANSFORMS = $(WS_TOP)/transforms/report
10 CDIR=$(COMPONENT_DIR:$(WS_TOP)/%=%)
11
12 component-report:    $(BUILD_DIR)/component-report
13
14 $(BUILD_DIR)/component-report:    $(BUILD_DIR)/package-info
15     @echo "<tr>" >$@
16     @echo "<td><a href='$(COMPONENT_PROJECT_URL)'>$(COMPONENT_NAME)</a></td>" >>$@
17     @echo "<td><a href='$(COMPONENT_ARCHIVE_URL)'>$(COMPONENT_VERSION)</a></td>" >>$@
18     @echo "<td><a href='$(HGWEB_BASE_URL)$(CDIR)'>$(CDIR)</a></td>" >>$@
19     @echo "<td>" >>$@ ; for pkg in $(PACKAGE) ; do \
20              echo "$$pkg<br>" >>$@ ; \
21      done ; echo "</td>" >>$@
22     @echo "<td>" >>$@ ; for arc in $(ARC_CASE) ; do \
23              echo "<a href='$(ARC_BASE_URL)$$arc'>$$arc</a><br>" >>$@ ; \
24      done ; echo "</td>" >>$@
25     @echo "<td>" >>$@ ; for license in $(LICENSE) ; do \
26          echo "$$license<br>" >>$@ ; \
27      done ; echo "</td>" >>$@
4e25d0 28     @echo "<td>$(TPNO)</td>" >>$@
3b89c9 29     @echo "<td>" >>$@ ; for bugdb in $(COMPONENT_BUGDB) ; do \
6dbd75 30          echo "<a href='$(BUGDB_URL)$$bugdb'>$$bugdb</a><br>" >>$@ ; \
3b89c9 31      done ; echo "</td>" >>$@
a93d79 32     @echo "<td><a href='$(ARIA_BASE_URL)$(RESPONSIBLE_ENGINEER)'>$(RESPONSIBLE_ENGINEER)</a></td>" >>$@
RB 33     @echo "<td><a href='$(ARIA_BASE_URL)$(RESPONSIBLE_MANAGER)'>$(RESPONSIBLE_MANAGER)</a></td>" >>$@
4bf613 34     @echo "<td>$(TEAM)</td>" >>$@
e24028 35     @echo "</tr>" >>$@
RB 36
37 $(BUILD_DIR)/package-info:    $(PKG_REPORTS)
38     @cat $(PKG_REPORTS) | sort -u >$@
39
40 $(BUILD_DIR)/component-info:    $(PKG_REPORTS)
41     @echo "COMPONENT_NAME=\"$(COMPONENT_NAME)\"" >$@
42     @echo "COMPONENT_VERSION=\"$(COMPONENT_VERSION)\"" >>$@
43     @echo "COMPONENT_PROJECT_URL=\"$(COMPONENT_PROJECT_URL)\"" >>$@
44     @echo "COMPONENT_ARCHIVE_URL=\"$(COMPONENT_ARCHIVE_URL)\"" >>$@
45     @echo "COMPONENT_DIR=\"$(CDIR)\"" >>$@
4e25d0 46     @echo "TPNO=\"$(TPNO)\"" >>$@
3b89c9 47     @echo "COMPONENT_BUGDB=\"$(COMPONENT_BUGDB)\"" >>$@
a93d79 48     @echo "RESPONSIBLE_ENGINEER=\"$(RESPONSIBLE_ENGINEER)\"" >>$@
RB 49     @echo "RESPONSIBLE_MANAGER=\"$(RESPONSIBLE_MANAGER)\"" >>$@
4bf613 50     @echo "TEAM=\"$(TEAM)\"" >>$@
e24028 51
RB 52 $(BUILD_DIR)/%.pkg-report:    %.p5m $(BUILD_DIR)
53     @$(PKGMOGRIFY) $(PKG_OPTIONS) -P $@ $< \
54         $(REPORT_TRANSFORMS) >/dev/null
55
56 include $(BUILD_DIR)/package-info