Skip to content

Commit

Permalink
Bug 1267270 - Set MOZ_SOURCE_REPO and MOZ_SOURCE_CHANGESET to the app…
Browse files Browse the repository at this point in the history
…ropriate values for comm-* in configure. r=glandium a=aleth CLOSED TREE DONTBUILD

--HG--
extra : rebase_source : 457f48bbf90525ad020b00bbbc34f180d6f6e161
  • Loading branch information
aleth committed Aug 10, 2016
1 parent d4fb354 commit b737467
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 20 deletions.
4 changes: 4 additions & 0 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ TOPSRCDIR="$SRCDIR"
MOZILLA_SRCDIR="${SRCDIR}/mozilla"
export OLD_CONFIGURE="${MOZILLA_SRCDIR}"/old-configure

# Ensure the comm-* values are used.
export MOZ_SOURCE_CHANGESET=$(hg -R "$TOPSRCDIR" parent --template="{node}" 2>/dev/null)
export MOZ_SOURCE_REPO=$(hg -R "$TOPSRCDIR" showconfig paths.default 2>/dev/null | sed -e "s/^ssh:/https:/")

# If MOZCONFIG isn't set, use the .mozconfig from the current directory. This
# overrides the lookup in mozilla-central's configure, which looks in the wrong
# directory for this file.
Expand Down
10 changes: 0 additions & 10 deletions im/app/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@ MOZ_BUILDID = $(shell $(PYTHON) $(MOZILLA_SRCDIR)/config/printconfigsetting.py $

LICENSE_TXT_FILE = $(topsrcdir)/im/LICENSE.txt

MOZ_SOURCE_STAMP = $(firstword $(shell hg -R $(topsrcdir) parent --template="{node|short}\n" 2>/dev/null))
ifdef MOZ_SOURCE_STAMP
DEFINES += -DMOZ_SOURCE_STAMP="$(MOZ_SOURCE_STAMP)"
endif

SOURCE_REPO := $(shell hg -R $(topsrcdir) showconfig paths.default 2>/dev/null | sed -e "s/^ssh:/http:/")
ifdef SOURCE_REPO
DEFINES += -DMOZ_SOURCE_REPO="$(SOURCE_REPO)"
endif

DEFINES += \
-DINSTANTBIRD_ICO=\"$(DIST)/branding/instantbird.ico\" \
$(NULL)
Expand Down
10 changes: 0 additions & 10 deletions mail/app/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@ AB_CD = $(MOZ_UI_LOCALE)
GRE_MILESTONE = $(shell $(PYTHON) $(MOZILLA_SRCDIR)/config/printconfigsetting.py $(DIST)/bin/platform.ini Build Milestone)
MOZ_BUILDID = $(shell $(PYTHON) $(MOZILLA_SRCDIR)/config/printconfigsetting.py $(DIST)/bin/platform.ini Build BuildID)

MOZ_SOURCE_STAMP = $(firstword $(shell hg -R $(topsrcdir) parent --template="{node|short}\n" 2>/dev/null))
ifdef MOZ_SOURCE_STAMP
DEFINES += -DMOZ_SOURCE_STAMP="$(MOZ_SOURCE_STAMP)"
endif

SOURCE_REPO := $(shell hg -R $(topsrcdir) showconfig paths.default 2>/dev/null | sed -e "s/^ssh:/http:/")
ifdef SOURCE_REPO
DEFINES += -DMOZ_SOURCE_REPO="$(SOURCE_REPO)"
endif

DEFINES += \
-DTHUNDERBIRD_ICO='"$(DIST)/branding/thunderbird.ico"' \
$(NULL)
Expand Down

0 comments on commit b737467

Please sign in to comment.