# HG changeset patch # User erikj # Date 1445329480 -7200 # Node ID 666c82f3bd5abb3bad5ebf8263080a3684c99145 # Parent fa16119dcde75d9d238b9e1f76850d5f5d94d177 8139657: Incremental build of jdk.vm.ci-gensrc creates repeated entries in services file Reviewed-by: twisti diff -r fa16119dcde7 -r 666c82f3bd5a hotspot/make/gensrc/Gensrc-jdk.vm.ci.gmk --- a/hotspot/make/gensrc/Gensrc-jdk.vm.ci.gmk Sun Sep 06 10:13:18 2015 +0300 +++ b/hotspot/make/gensrc/Gensrc-jdk.vm.ci.gmk Tue Oct 20 10:24:40 2015 +0200 @@ -108,7 +108,11 @@ ($(CD) $(GENSRC_DIR)/META-INF/jvmci.providers && \ for i in $$($(LS)); do \ c=$$($(CAT) $$i | $(TR) -d '\n\r'); \ - $(ECHO) $$i >> $(GENSRC_DIR)/META-INF/services/$$c; \ + $(ECHO) $$i >> $(GENSRC_DIR)/META-INF/services/$$c.tmp; \ + done) + ($(CD) $(GENSRC_DIR)/META-INF/services && \ + for i in $$($(LS) *.tmp); do \ + $(MV) $$i $${i%.tmp}; \ done) $(TOUCH) $@