make-rules/prep-git.mk
changeset 5682 94c0ca64c022
parent 5438 c068f8c677e8
child 5833 c1e66c53301d
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    15 # If applicable, add the following below this CDDL HEADER, with the
    15 # If applicable, add the following below this CDDL HEADER, with the
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
       
    20 #
       
    21 
    20 #
    22 #
    21 # Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
    22 #
    24 #
    23 
    25 
    24 GIT =		/usr/bin/git
    26 GIT =		/usr/bin/git
    45 COMPONENT_SRC$(1) ?= $$(COMPONENT_NAME$(1))$$(GIT_BRANCH$(1):%=-%)$$(GIT_COMMIT_ID$(1):%=-%)
    47 COMPONENT_SRC$(1) ?= $$(COMPONENT_NAME$(1))$$(GIT_BRANCH$(1):%=-%)$$(GIT_COMMIT_ID$(1):%=-%)
    46 COMPONENT_ARCHIVE$(1) ?= $$(COMPONENT_SRC$(1)).tar.gz
    48 COMPONENT_ARCHIVE$(1) ?= $$(COMPONENT_SRC$(1)).tar.gz
    47 # If the source is github attempt to generate an archive url
    49 # If the source is github attempt to generate an archive url
    48 ifeq (github,$(findstring github,$(GIT_REPO$(1))))
    50 ifeq (github,$(findstring github,$(GIT_REPO$(1))))
    49   COMPONENT_ARCHIVE_URL$(1) ?= $(GIT_REPO$(1))/tarball/$(GIT_BRANCH$(1))
    51   COMPONENT_ARCHIVE_URL$(1) ?= $(GIT_REPO$(1))/tarball/$(GIT_BRANCH$(1))
       
    52 else
       
    53   COMPONENT_ARCHIVE_SRC$(1) = git
    50 endif
    54 endif
    51 
    55 
    52 CLEAN_PATHS += $$(COMPONENT_SRC$(1))
    56 CLEAN_PATHS += $$(COMPONENT_SRC$(1))
    53 CLOBBER_PATHS += $$(COMPONENT_ARCHIVE$(1))
    57 CLOBBER_PATHS += $$(COMPONENT_ARCHIVE$(1))
    54 SOURCE_DIR$(1) = $$(COMPONENT_DIR)/$(COMPONENT_SRC$(1))
    58 SOURCE_DIR$(1) = $$(COMPONENT_DIR)/$(COMPONENT_SRC$(1))