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/
7 BUGDB_URL = http://userland.us.oracle.com/bugdb?cat-subcat=
9 REPORT_TRANSFORMS = $(WS_TOP)/transforms/report
10 CDIR=$(COMPONENT_DIR:$(WS_TOP)/%=%)
12 component-report: $(BUILD_DIR)/component-report
14 $(BUILD_DIR)/component-report: $(BUILD_DIR)/package-info
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>" >>$@
28 @echo "<td>$(TPNO)</td>" >>$@
29 @echo "<td>" >>$@ ; for bugdb in $(COMPONENT_BUGDB) ; do \
30 echo "<a href='$(BUGDB_URL)$$bugdb'>$$bugdb</a><br>" >>$@ ; \
31 done ; echo "</td>" >>$@
32 @echo "<td><a href='$(ARIA_BASE_URL)$(RESPONSIBLE_ENGINEER)'>$(RESPONSIBLE_ENGINEER)</a></td>" >>$@
33 @echo "<td><a href='$(ARIA_BASE_URL)$(RESPONSIBLE_MANAGER)'>$(RESPONSIBLE_MANAGER)</a></td>" >>$@
34 @echo "<td>$(TEAM)</td>" >>$@
37 $(BUILD_DIR)/package-info: $(PKG_REPORTS)
38 @cat $(PKG_REPORTS) | sort -u >$@
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)\"" >>$@
46 @echo "TPNO=\"$(TPNO)\"" >>$@
47 @echo "COMPONENT_BUGDB=\"$(COMPONENT_BUGDB)\"" >>$@
48 @echo "RESPONSIBLE_ENGINEER=\"$(RESPONSIBLE_ENGINEER)\"" >>$@
49 @echo "RESPONSIBLE_MANAGER=\"$(RESPONSIBLE_MANAGER)\"" >>$@
50 @echo "TEAM=\"$(TEAM)\"" >>$@
52 $(BUILD_DIR)/%.pkg-report: %.p5m $(BUILD_DIR)
53 @$(PKGMOGRIFY) $(PKG_OPTIONS) -P $@ $< \
54 $(REPORT_TRANSFORMS) >/dev/null
56 include $(BUILD_DIR)/package-info