Bug 746382 - save a copy of whatever mozconfig you used into $OBJDIR/.mozconfig to make it easier to automate rebuilds. r=khuey
authorSteve Fink <sfink@mozilla.com>
Tue, 17 Apr 2012 16:10:23 -0700
changeset 96375 6c39b78d67c0df0e6c4523e0c0308f3cbdf3f91d
parent 96374 a04734d243c8192b6c5e29fc9eef63ace4cf46cd
child 96376 4811711ec8b75a497833a224f138be904e466fe3
push idunknown
push userunknown
push dateunknown
reviewerskhuey
bugs746382
milestone14.0a1
Bug 746382 - save a copy of whatever mozconfig you used into $OBJDIR/.mozconfig to make it easier to automate rebuilds. r=khuey
client.mk
--- a/client.mk
+++ b/client.mk
@@ -319,18 +319,22 @@ else
 endif
 
 configure-files: $(CONFIGURES)
 
 configure-preqs = \
   configure-files \
   $(call mkdir_deps,$(OBJDIR)) \
   $(if $(MOZ_BUILD_PROJECTS),$(call mkdir_deps,$(MOZ_OBJDIR))) \
+  save-mozconfig \
   $(NULL)
 
+save-mozconfig:
+	-cp $(FOUND_MOZCONFIG) $(OBJDIR)/.mozconfig
+
 configure:: $(configure-preqs)
 	@echo cd $(OBJDIR);
 	@echo $(CONFIGURE) $(CONFIGURE_ARGS)
 	@cd $(OBJDIR) && $(BUILD_PROJECT_ARG) $(CONFIGURE_ENV_ARGS) $(CONFIGURE) $(CONFIGURE_ARGS) \
 	  || ( echo "*** Fix above errors and then restart with\
                \"$(MAKE) -f client.mk build\"" && exit 1 )
 	@touch $(OBJDIR)/Makefile