Commit 68f1185a authored by Anton Midyukov's avatar Anton Midyukov

pkg.in/lists/Makefile: sort lists before copying

In order to hide warning: cp: warning: source file 'file' specified more than once
parent 9b999087
...@@ -22,11 +22,11 @@ TARGET := $(BUILDDIR)/$(SUFFIX) ...@@ -22,11 +22,11 @@ TARGET := $(BUILDDIR)/$(SUFFIX)
all: | $(TARGET) $(GLOBAL_DEBUG) copy-lists copy-groups save_packages_to_lists grep-metadep grep-archdep check-lists all: | $(TARGET) $(GLOBAL_DEBUG) copy-lists copy-groups save_packages_to_lists grep-metadep grep-archdep check-lists
@mp-commit "$(TARGET)" "requested $(SUFFIX) copied over" @mp-commit "$(TARGET)" "requested $(SUFFIX) copied over"
# env | sort -u | grep _LISTS | xargs -r cp -t # env | grep _LISTS | sort -u | xargs -r cp -t
copy-lists: copy-lists:
@echo $(foreach V, \ @echo $(sort $(foreach V, \
$(filter %_LISTS,$(sort $(.VARIABLES))), \ $(filter %_LISTS,$(.VARIABLES)), \
$(if $(filter environment% file,$(origin $V)),$($V))) \ $(if $(filter environment% file,$(origin $V)),$($V)))) \
|xargs -r -- cp --parents -at $(TARGET) --; \ |xargs -r -- cp --parents -at $(TARGET) --; \
find $(TARGET) -name 'README' -delete -o -name 'Makefile' -delete find $(TARGET) -name 'README' -delete -o -name 'Makefile' -delete
...@@ -45,7 +45,7 @@ check-lists: ...@@ -45,7 +45,7 @@ check-lists:
copy-groups: PKGDIR = .. copy-groups: PKGDIR = ..
copy-groups: copy-groups:
@echo $(call groups2lists) \ @echo $(sort $(call groups2lists)) \
| xargs -r -- cp --parents -at $(TARGET) -- | xargs -r -- cp --parents -at $(TARGET) --
grep-archdep: grep-archdep:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment