6631003: Add hg tip changeset to build image
authorohair
Tue, 26 Apr 2011 16:30:00 -0700
changeset 9309 334bea52fc16
parent 9162 955488f34ca4
child 9310 8394bb7065f9
6631003: Add hg tip changeset to build image Reviewed-by: mduigou
.hgignore
Makefile
--- a/.hgignore	Wed Jul 05 17:41:27 2017 +0200
+++ b/.hgignore	Tue Apr 26 16:30:00 2011 -0700
@@ -2,3 +2,4 @@
 ^dist/
 /nbproject/private/
 ^webrev
+^.hgtip
--- a/Makefile	Wed Jul 05 17:41:27 2017 +0200
+++ b/Makefile	Tue Apr 26 16:30:00 2011 -0700
@@ -97,7 +97,7 @@
 endef
 
 # Generic build of basic repo series
-generic_build_repo_series::
+generic_build_repo_series:: $(SOURCE_TIPS)
 	$(MKDIR) -p $(OUTPUTDIR)
 	$(MKDIR) -p $(OUTPUTDIR)/j2sdk-image
 	@$(call StartTimer)
@@ -243,6 +243,14 @@
 debug_build:: build_debug_image
 fastdebug_build:: build_fastdebug_image
 
+# The source tips are stored with the relative path to the repo.
+#   This file will be used when constructing the jdk image.
+source_tips: $(SOURCE_TIPS)
+	$(CAT) $<
+$(SOURCE_TIPS): FRC
+	@$(prep-target)
+	@$(call GetSourceTips)
+
 clobber:: REPORT_BUILD_TIMES=
 clobber:: 
 	$(RM) -r $(OUTPUTDIR)/*