Commit 8a4d1b91 authored by Anton Midyukov's avatar Anton Midyukov

Makefile: check *_PACKAGES* variables as lists

parent 5b3e3ee6
......@@ -19,7 +19,7 @@ include $(BUILDDIR)/functions.mk
SUFFIX := pkg/lists
TARGET := $(BUILDDIR)/$(SUFFIX)
all: | $(TARGET) $(GLOBAL_DEBUG) copy-lists copy-groups 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"
# env | sort -u | grep _LISTS | xargs -r cp -t
......@@ -30,11 +30,50 @@ copy-lists:
|xargs -r -- cp --parents -at $(TARGET) --; \
find $(TARGET) -name 'README' -delete -o -name 'Makefile' -delete
save_packages_to_lists:
@echo $(BASE_PACKAGES) |sed -e 's/\s\+/\n/g' \
|sort -u > $(TARGET)/BASE_PACKAGES
@echo $(BASE_PACKAGES_REGEXP) |sed -e 's/\s\+/\n/g' \
|sort -u > $(TARGET)/BASE_PACKAGES_REGEXP
@echo $(COMMON_PACKAGES) |sed -e 's/\s\+/\n/g' \
|sort -u > $(TARGET)/COMMON_PACKAGES
@echo $(COMMON_PACKAGES_REGEXP) |sed -e 's/\s\+/\n/g' \
|sort -u > $(TARGET)/COMMON_PACKAGES_REGEXP
@echo $(INSTALL2_PACKAGES) |sed -e 's/\s\+/\n/g' \
|sort -u > $(TARGET)/INSTALL2_PACKAGES
@echo $(INSTALL2_PACKAGES_REGEXP) |sed -e 's/\s\+/\n/g' \
|sort -u > $(TARGET)/INSTALL2_PACKAGES_REGEXP
@echo $(LIVE_PACKAGES) |sed -e 's/\s\+/\n/g' \
|sort -u > $(TARGET)/LIVE_PACKAGES
@echo $(LIVE_PACKAGES_REGEXP) |sed -e 's/\s\+/\n/g' \
|sort -u > $(TARGET)/LIVE_PACKAGES_REGEXP
@echo $(MAIN_PACKAGES) |sed -e 's/\s\+/\n/g' \
|sort -u > $(TARGET)/MAIN_PACKAGES
@echo $(MAIN_PACKAGES_REGEXP) |sed -e 's/\s\+/\n/g' \
|sort -u > $(TARGET)/MAIN_PACKAGES_REGEXP
@echo $(STAGE1_PACKAGES) |sed -e 's/\s\+/\n/g' \
|sort -u > $(TARGET)/STAGE1_PACKAGES
@echo $(STAGE1_PACKAGES_REGEXP) |sed -e 's/\s\+/\n/g' \
|sort -u > $(TARGET)/STAGE1_PACKAGES_REGEXP
@echo $(STAGE2_PACKAGES) |sed -e 's/\s\+/\n/g' \
|sort -u > $(TARGET)/STAGE2_PACKAGES
@echo $(STAGE2_PACKAGES_REGEXP) |sed -e 's/\s\+/\n/g' \
|sort -u > $(TARGET)/STAGE2_PACKAGES_REGEXP
@echo $(SYSTEM_PACKAGES) |sed -e 's/\s\+/\n/g' \
|sort -u > $(TARGET)/SYSTEM_PACKAGES
@echo $(SYSTEM_PACKAGES_REGEXP) |sed -e 's/\s\+/\n/g' \
|sort -u > $(TARGET)/SYSTEM_PACKAGES_REGEXP
@echo $(THE_PACKAGES) |sed -e 's/\s\+/\n/g' \
|sort -u > $(TARGET)/THE_PACKAGES
@echo $(THE_PACKAGES_REGEXP) |sed -e 's/\s\+/\n/g' \
|sort -u > $(TARGET)/THE_PACKAGES_REGEXP
check-lists:
@APTBOX=$(BUILDDIR)/.work/pkgbox/aptbox; \
if [ -d "$$APTBOX" ]; then \
check-pkg-list --aptbox "$$APTBOX" `find $(TARGET) -type f`; \
fi
@rm -f $(TARGET)/*_PACKAGES*
copy-groups: PKGDIR = ..
copy-groups:
......
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