make-rules/component-report
author Norm Jacobs <Norm.Jacobs@Oracle.COM>
Tue, 09 Apr 2013 10:37:15 -0700
changeset 1251 f1fb66b52f41
parent 1139 2fe2a52488cb
child 2140 ba3091d7e9b6
permissions -rw-r--r--
16611225 foomatic-rip delivers obsolete LP functionality 16611235 foomatic-rip and foomatic-db-engine should have the same sysconfdir 16611239 sysmon message file package manifest has wrong FMRI 16611251 userland pkglint should not double report pkg.linted messages 16611268 userland needs pkg.linted cleanup. 16611270 userland manifests shouldn't have dir actions


PKG_REPORTS=$(CANONICAL_MANIFESTS:%.p5m=$(BUILD_DIR)/%.pkg-report)

HGWEB_BASE_URL = http://userland.us.oracle.com/hg/file/tip/
ARIA_BASE_URL = http://people.us.oracle.com/pls/oracle/find_person?p_string=
ARC_BASE_URL = http://psarc.us.oracle.com/
BUGDB_URL = http://userland.us.oracle.com/bugdb?cat-subcat=

REPORT_TRANSFORMS = $(WS_TOP)/transforms/report
CDIR=$(COMPONENT_DIR:$(WS_TOP)/%=%)

component-report:	$(BUILD_DIR)/component-report

$(BUILD_DIR)/component-report:	$(BUILD_DIR)/package-info
	@echo "<tr>" >$@
	@echo "<td><a href='$(COMPONENT_PROJECT_URL)'>$(COMPONENT_NAME)</a></td>" >>$@
	@echo "<td><a href='$(COMPONENT_ARCHIVE_URL)'>$(COMPONENT_VERSION)</a></td>" >>$@
	@echo "<td><a href='$(HGWEB_BASE_URL)$(CDIR)'>$(CDIR)</a></td>" >>$@
	@echo "<td>" >>$@ ; for pkg in $(PACKAGE) ; do \
             echo "$$pkg<br>" >>$@ ; \
	 done ; echo "</td>" >>$@
	@echo "<td>" >>$@ ; for arc in $(ARC_CASE) ; do \
             echo "<a href='$(ARC_BASE_URL)$$arc'>$$arc</a><br>" >>$@ ; \
	 done ; echo "</td>" >>$@
	@echo "<td>" >>$@ ; for license in $(LICENSE) ; do \
	     echo "$$license<br>" >>$@ ; \
	 done ; echo "</td>" >>$@
	@echo "<td>$(TPNO)</td>" >>$@
	@echo "<td>" >>$@ ; for bugdb in $(COMPONENT_BUGDB) ; do \
	     echo "<a href='$(BUGDB_URL)$$bugdb'>$$bugdb</a><br>" >>$@ ; \
	 done ; echo "</td>" >>$@
	@echo "<td><a href='$(ARIA_BASE_URL)$(RESPONSIBLE_ENGINEER)'>$(RESPONSIBLE_ENGINEER)</a></td>" >>$@
	@echo "<td><a href='$(ARIA_BASE_URL)$(RESPONSIBLE_MANAGER)'>$(RESPONSIBLE_MANAGER)</a></td>" >>$@
	@echo "<td>$(TEAM)</td>" >>$@
	@echo "</tr>" >>$@

$(BUILD_DIR)/package-info:	$(PKG_REPORTS)
	@cat $(PKG_REPORTS) | sort -u >$@

$(BUILD_DIR)/component-info:	$(PKG_REPORTS)
	@echo "COMPONENT_NAME=\"$(COMPONENT_NAME)\"" >$@
	@echo "COMPONENT_VERSION=\"$(COMPONENT_VERSION)\"" >>$@
	@echo "COMPONENT_PROJECT_URL=\"$(COMPONENT_PROJECT_URL)\"" >>$@
	@echo "COMPONENT_ARCHIVE_URL=\"$(COMPONENT_ARCHIVE_URL)\"" >>$@
	@echo "COMPONENT_DIR=\"$(CDIR)\"" >>$@
	@echo "TPNO=\"$(TPNO)\"" >>$@
	@echo "COMPONENT_BUGDB=\"$(COMPONENT_BUGDB)\"" >>$@
	@echo "RESPONSIBLE_ENGINEER=\"$(RESPONSIBLE_ENGINEER)\"" >>$@
	@echo "RESPONSIBLE_MANAGER=\"$(RESPONSIBLE_MANAGER)\"" >>$@
	@echo "TEAM=\"$(TEAM)\"" >>$@

$(BUILD_DIR)/%.pkg-report:	%.p5m $(BUILD_DIR)
	@$(PKGMOGRIFY) $(PKG_OPTIONS) -P $@ $< \
		$(REPORT_TRANSFORMS) >/dev/null

include $(BUILD_DIR)/package-info