Skip to content

Commit

Permalink
Use temp directory for config finder (#1381)
Browse files Browse the repository at this point in the history
  • Loading branch information
abejgonzalez committed Mar 7, 2023
1 parent f7a39f8 commit a1afdb4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,11 @@ endef

CONFIG_FRAG_LEVELS ?= 3
.PHONY: find-config-fragments
find-config-fragments: private IN_F := $(shell mktemp -d -t cy-XXXXXXXX)/scala_files.f
find-config-fragments: $(SCALA_SOURCES)
rm -rf /tmp/scala_files.f
@$(foreach file,$(SCALA_SOURCES),echo $(file) >> /tmp/scala_files.f${\n})
$(base_dir)/scripts/config-finder.py -l $(CONFIG_FRAG_LEVELS) /tmp/scala_files.f
@$(foreach file,$(SCALA_SOURCES),echo $(file) >> $(IN_F)${\n})
$(base_dir)/scripts/config-finder.py -l $(CONFIG_FRAG_LEVELS) $(IN_F)
@rm -rf $(dir $(IN_F))

.PHONY: help
help:
Expand Down

0 comments on commit a1afdb4

Please sign in to comment.