1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 8 unchanged lines hidden (view full) ---

17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24# Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved.
25# Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
26#
27
28include $(SRC)/Makefile.master
29include $(SRC)/Makefile.buildnum
30
31#
32# Make sure we're getting a consistent execution environment for the
33# embedded scripts.

--- 586 unchanged lines hidden (view full) ---

620# contents of the processed manifests, which can vary depending on build
621# environment.
622#
623$(PKGLISTS): $(PROC_PKGS)
624 $(PKGDEBUG)sdotr=$(@F:packages.%=%); \
625 r=$${sdotr%.+(?)}; s=$${sdotr#+(?).}; \
626 print "Generating $$r $$s package list"; \
627 $(RM) $(@); $(TOUCH) $(@); \
627 $(NAWK) 'BEGIN { \
628 $(AWK) 'BEGIN { \
629 if (ARGC < 2) { \
630 exit; \
631 } \
632 retcode = 0; \
633 for (i = 1; i < ARGC; i++) { \
634 do { \
635 e = getline f < ARGV[i]; \
636 } while ((e == 1) && (f !~ /name=pkg.fmri/)); \

--- 36 unchanged lines hidden (view full) ---

673# Staging the license and description files in the proto area allows
674# us to do proper unreferenced file checking of both license and
675# description files without blanket exceptions, and to pull license
676# content without reference to $CODEMGR_WS during publication.
677#
678stage-licenses: license-list FRC
679 $(PKGDEBUG)$(MAKE) -e -f Makefile.lic \
680 PKGDEBUG=$(PKGDEBUG) LICROOT=$(PKGROOT)/licenses \
680 `$(NAWK) '{ \
681 `$(AWK) '{ \
682 print "$(PKGROOT)/licenses/" $$0; \
683 print "$(PKGROOT)/licenses/" $$0 ".descrip"; \
684 }' license-list` > /dev/null;
685
686protocmp: makesilent
687 @validate_pkg -a $(PKGMACH) -v \
688 $(EXCEPTIONS:%=-e $(CODEMGR_WS)/exception_lists/%) \
689 -m $(PDIR) -p $(PKGROOT) -p $(TOOLSROOT)

--- 51 unchanged lines hidden ---