config/makefiles/rcs.mk
author Joshua Cranmer <Pidgeot18@gmail.com>
Fri, 21 Jun 2013 09:56:27 -0500
changeset 14129 993bb2a45132dc51b6fdc821dee9a0124085e100
parent 13340 bce8262aabcc6bb720ed18ec46b47e1f691be5ca
child 14681 57ed3a61ff853de1af2707d2fce3bbb2936bde23
permissions -rw-r--r--
Bug 884824 - Move EXTRA_JS_MODULES and JS_MODULES_PATH to moz.build, r=Standard8 CLOSED TREE for the SeaMonkey migration as well.

# -*- makefile -*-
# vim:set ts=8 sw=8 sts=8 noet:
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#

ifdef USE_RCS_MK #{

ifndef INCLUDED_RCS_MK #{

MOZ_RCS_TYPE ?= $(notdir $(wildcard $(topsrcdir)/.hg))


###########################################################################
# HAVE_MERCURIAL_RCS
###########################################################################
ifeq (.hg,$(MOZ_RCS_TYPE)) #{

# Intent: Retrieve the http:// repository path for a directory.
# Usage: $(call getSourceRepo[,repo_dir|args])
# Args:
#   path (optional): repository to query.  Defaults to $(topsrcdir)
getSourceRepo = \
  $(call FUNC_getSourceRepo,$(if $(1),cd $(1) && hg,hg --repository $(topsrcdir)))

# return: http://hg.mozilla.org/mozilla-central
FUNC_getSourceRepo = \
  $(strip \
    $(patsubst %/,%,\
    $(patsubst ssh://%,http://%,\
    $(firstword $(shell $(getargv) showconfig paths.default))\
    )))

endif #} HAVE_MERCURIAL_RCS


INCLUDED_RCS_MK := 1
endif #}

endif #}