diff options
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/src/Makefile b/usr/src/Makefile index b9be247888..b71c3485c8 100644 --- a/usr/src/Makefile +++ b/usr/src/Makefile @@ -23,6 +23,7 @@ # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 2012 by Delphix. All rights reserved. # Copyright 2014 Garrett D'Amore <garrett@damore.org> +# Copyright 2015 OmniTI Computer Consulting, Inc. All rights reserved. # # @@ -137,8 +138,17 @@ clobber_local: @cd common/mapfiles; pwd; $(MAKE) clobber @cd msg; pwd; $(MAKE) clobber +# If the tarballs are included inside ON_CLOSED_BINS, use those to extract and +# preserve the permissions (in case a distro ships them). + closedbins: bldtools $(ROOTDIRS) FRC @CLOSED_ROOT="$$ON_CLOSED_BINS/root_$(MACH)$${RELEASE_BUILD+-nd}"; \ + if [ -f "$$ON_CLOSED_BINS/on-closed-bins$${RELEASE_BUILD+-nd}.$(MACH).tar.bz2" ]; then \ + $(ECHO) "Extracting tarball $$ON_CLOSED_BINS/on-closed-bins$${RELEASE_BUILD+-nd}.$(MACH).tar.bz2"; \ + (cd $(CODEMGR_WS); \ + $(TAR) xjpf $$ON_CLOSED_BINS/on-closed-bins$${RELEASE_BUILD+-nd}.$(MACH).tar.bz2); \ + CLOSED_ROOT="$(CODEMGR_WS)/closed/root_$(MACH)$${RELEASE_BUILD+-nd}"; \ + fi; \ if [ ! -d "$$CLOSED_ROOT" ]; then \ $(ECHO) "Error: ON_CLOSED_BINS must point to closed" \ "binaries."; \ |
