When adding source files to source CDs, cope better with empty lists,
e.g. non-US sources on a CD that doesn't contain any.
This commit is contained in:
parent
00e2cc2955
commit
24ca43d57a
29
Makefile
29
Makefile
|
@ -440,19 +440,30 @@ $(SDIR)/sources-stamp:
|
||||||
n=$${dir##$(SDIR)/}; \
|
n=$${dir##$(SDIR)/}; \
|
||||||
dir=$(SDIR)/CD$$n; \
|
dir=$(SDIR)/CD$$n; \
|
||||||
echo -n "$$n ... "; \
|
echo -n "$$n ... "; \
|
||||||
grep -vE "(non-US/|/local/)" $$i | xargs $(addfiles) \
|
echo -n "main ... "; \
|
||||||
$$dir $(MIRROR); \
|
grep -vE "(non-US/|/local/)" $$i > $(SDIR)/$$.main || true ; \
|
||||||
|
if [ -s $(SDIR)/$$.main ] ; then \
|
||||||
|
cat $(SDIR)/$$.main | xargs $(addfiles) $$dir $(MIRROR); \
|
||||||
|
fi ; \
|
||||||
if [ -n "$(LOCAL)" ]; then \
|
if [ -n "$(LOCAL)" ]; then \
|
||||||
if [ -n "$(LOCALDEBS)" ]; then \
|
echo -n "local ... "; \
|
||||||
grep "/local/" $$i | xargs $(addfiles) \
|
grep "/local/" $$i > $(SDIR)/$$.localn || true ; \
|
||||||
$$dir $(LOCALDEBS); \
|
if [ -s $(SDIR)/$$.local ] ; then \
|
||||||
else \
|
if [ -n "$(LOCALDEBS)" ] ; then \
|
||||||
grep "/local/" $$i | xargs $(addfiles) \
|
cat $(SDIR)/$$.local | xargs $(addfiles) \
|
||||||
$$dir $(MIRROR); \
|
$$dir $(LOCALDEBS); \
|
||||||
|
else \
|
||||||
|
cat $(SDIR)/$$.local | xargs $(addfiles) \
|
||||||
|
$$dir $(MIRROR); \
|
||||||
|
fi; \
|
||||||
fi; \
|
fi; \
|
||||||
fi; \
|
fi; \
|
||||||
if [ -n "$(NONUS)" ]; then \
|
if [ -n "$(NONUS)" ]; then \
|
||||||
grep "non-US/" $$i | xargs $(addfiles) $$dir $(NONUS); \
|
echo -n "non-US ... "; \
|
||||||
|
grep "non-US/" $$i > $(SDIR)/$$.nonusn || true ; \
|
||||||
|
if [ -s $(SDIR)/$$.nonus ] ; then \
|
||||||
|
cat $(SDIR)/$$.nonus | xargs $(addfiles) $$dir $(NONUS); \
|
||||||
|
fi; \
|
||||||
fi; \
|
fi; \
|
||||||
$(scansources) $$dir; \
|
$(scansources) $$dir; \
|
||||||
echo "done."; \
|
echo "done."; \
|
||||||
|
|
Loading…
Reference in New Issue