Commit fadd4ac0 authored by Anton Midyukov's avatar Anton Midyukov

pkg.in/lists/Makefile: refactoring save_packages_to_lists target

parent d367f042
......@@ -31,42 +31,10 @@ copy-lists:
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
@$(foreach V, \
$(filter-out GLOBAL_% PINNED_%,$(filter %_PACKAGES,$(sort \
$(.VARIABLES)))),echo $($V) | sed -e 's/\s\+/\n/g' \
| sort -u > $(TARGET)/$V;)
check-lists:
@APTBOX=$(BUILDDIR)/.work/pkgbox/aptbox; \
......
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