config/makefiles/rcs.mk

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 # -*- makefile -*-
     2 # vim:set ts=8 sw=8 sts=8 noet:
     3 #
     4 # This Source Code Form is subject to the terms of the Mozilla Public
     5 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
     6 # You can obtain one at http://mozilla.org/MPL/2.0/.
     7 #
     9 ifdef USE_RCS_MK #{
    11 ifndef INCLUDED_RCS_MK #{
    13 MOZ_RCS_TYPE_HG ?= $(notdir $(wildcard $(topsrcdir)/.hg))
    14 MOZ_RCS_TYPE_GIT ?= $(notdir $(wildcard $(topsrcdir)/.git))
    17 ###########################################################################
    18 # HAVE_MERCURIAL_RCS
    19 ###########################################################################
    20 ifeq (.hg,$(MOZ_RCS_TYPE_HG)) #{
    22 # Intent: Retrieve the http:// repository path for a directory.
    23 # Usage: $(call getSourceRepo[,repo_dir|args])
    24 # Args:
    25 #   path (optional): repository to query.  Defaults to $(topsrcdir)
    26 getSourceRepo = \
    27   $(call FUNC_getSourceRepo,$(if $(1),cd $(1) && hg,hg --repository $(topsrcdir)))
    29 # return: http://hg.mozilla.org/mozilla-central
    30 FUNC_getSourceRepo = \
    31   $(strip \
    32     $(patsubst %/,%,\
    33     $(patsubst ssh://%,http://%,\
    34     $(firstword $(shell $(getargv) showconfig paths.default))\
    35     )))
    37 #} HAVE_MERCURIAL_RCS
    39 ###########################################################################
    40 # HAVE_GIT_RCS
    41 ###########################################################################
    42 else ifeq (.git,$(MOZ_RCS_TYPE_GIT)) #{
    44 GIT ?= git
    45 getSourceRepo = \
    46   $(shell cd $(topsrcdir) && $(GIT) rev-parse --verify HEAD)
    48 endif #} HAVE_GIT_RCS
    51 INCLUDED_RCS_MK := 1
    52 endif #}
    54 endif #}

mercurial