Skip to content

Commit

Permalink
Bug 1246881 - Stop using config/buildid in few remaining places. r=mshal
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium committed Feb 11, 2016
1 parent fd36539 commit 9383395
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion browser/app/Makefile.in
Expand Up @@ -79,7 +79,7 @@ LPROJ := Contents/Resources/$(LPROJ_ROOT).lproj
clean clobber repackage::
$(RM) -r $(dist_dest)

MAC_BUNDLE_VERSION = $(shell $(PYTHON) $(srcdir)/macversion.py --version=$(MOZ_APP_VERSION) --buildid=$(DEPTH)/config/buildid)
MAC_BUNDLE_VERSION = $(shell $(PYTHON) $(srcdir)/macversion.py --version=$(MOZ_APP_VERSION) --buildid=$(DEPTH)/buildid.h)

.PHONY: repackage
tools repackage:: $(DIST)/bin/$(MOZ_APP_NAME)
Expand Down
2 changes: 1 addition & 1 deletion browser/app/macversion.py
Expand Up @@ -28,7 +28,7 @@
# builds), but also so that newly-built older versions (e.g. beta build) aren't
# considered "newer" than previously-built newer versions (e.g. a trunk nightly)

buildid = open(options.buildid, 'r').read()
define, MOZ_BUILDID, buildid = open(options.buildid, 'r').read().split()

# extract only the major version (i.e. "14" from "14.0b1")
majorVersion = re.match(r'^(\d+)[^\d].*', options.version).group(1)
Expand Down
15 changes: 0 additions & 15 deletions config/Makefile.in
Expand Up @@ -32,21 +32,6 @@ endif

include $(topsrcdir)/config/rules.mk

ifndef JS_STANDALONE
ifndef MOZ_PROFILE_USE
# Generate a new buildid every time we "export" in config... that's only
# supposed to be once per-build!
export:: buildid

buildid: FORCE
ifdef MOZ_BUILD_DATE
printf '%s' $(MOZ_BUILD_DATE) > buildid
else
$(PYTHON) $(topsrcdir)/toolkit/xre/make-platformini.py --print-buildid > buildid
endif
endif
endif

ifdef WRAP_SYSTEM_INCLUDES
export-preqs = \
$(call mkdir_deps,system_wrappers) \
Expand Down
4 changes: 2 additions & 2 deletions config/version_win.pl
Expand Up @@ -114,7 +114,7 @@ sub getNextEntry
my $bufferstr=" ";

my $MILESTONE_FILE = "$topsrcdir/config/milestone.txt";
my $BUILDID_FILE = "$depth/config/buildid";
my $BUILDID_FILE = "$depth/buildid.h";

#Read module.ver file
#Version file overrides for WIN32:
Expand Down Expand Up @@ -183,7 +183,7 @@ sub getNextEntry

open(BUILDID, "<", $BUILDID_FILE) || die("Couldn't open buildid file: $BUILDID_FILE");
$buildid = <BUILDID>;
$buildid =~ s/\s*$//;
$buildid =~ s/^#define MOZ_BUILDID\s+(\S+)\s*$/$1/;
close BUILDID;

my $daycount = daysFromBuildID($buildid);
Expand Down

0 comments on commit 9383395

Please sign in to comment.