Preprocess exclude files much like tasks files are. Closes: #247379
This commit is contained in:
parent
997a0005e0
commit
a279c2ed9c
22
Makefile
22
Makefile
|
@ -273,7 +273,9 @@ apt-update: status
|
||||||
# Deleting the list only
|
# Deleting the list only
|
||||||
deletelist: ok
|
deletelist: ok
|
||||||
$(Q)-rm $(BDIR)/rawlist
|
$(Q)-rm $(BDIR)/rawlist
|
||||||
|
$(Q)-rm $(BDIR)/rawlist-exclude
|
||||||
$(Q)-rm $(BDIR)/list
|
$(Q)-rm $(BDIR)/list
|
||||||
|
$(Q)-rm $(BDIR)/list.exclude
|
||||||
|
|
||||||
# Generates the list of packages/files to put on each CD
|
# Generates the list of packages/files to put on each CD
|
||||||
list: bin-list src-list
|
list: bin-list src-list
|
||||||
|
@ -321,7 +323,7 @@ endif
|
||||||
|
|
||||||
# Generate the complete listing of packages from the task
|
# Generate the complete listing of packages from the task
|
||||||
# Build a nice list without doubles and without spaces
|
# Build a nice list without doubles and without spaces
|
||||||
genlist: ok $(BDIR)/list
|
genlist: ok $(BDIR)/list $(BDIR)/list.exclude
|
||||||
$(BDIR)/list: $(BDIR)/rawlist
|
$(BDIR)/list: $(BDIR)/rawlist
|
||||||
@echo "Generating the complete list of packages to be included ..."
|
@echo "Generating the complete list of packages to be included ..."
|
||||||
$(Q)perl -ne 'chomp; next if /^\s*$$/; \
|
$(Q)perl -ne 'chomp; next if /^\s*$$/; \
|
||||||
|
@ -329,6 +331,14 @@ $(BDIR)/list: $(BDIR)/rawlist
|
||||||
$(BDIR)/rawlist \
|
$(BDIR)/rawlist \
|
||||||
> $(BDIR)/list
|
> $(BDIR)/list
|
||||||
|
|
||||||
|
|
||||||
|
$(BDIR)/list.exclude: $(BDIR)/rawlist-exclude
|
||||||
|
@echo "Generating the complete list of packages to be removed ..."
|
||||||
|
$(Q)perl -ne 'chomp; next if /^\s*$$/; \
|
||||||
|
print "$$_\n" if not $$seen{$$_}; $$seen{$$_}++;' \
|
||||||
|
$(BDIR)/rawlist-exclude \
|
||||||
|
> $(BDIR)/list.exclude
|
||||||
|
|
||||||
# Build the raw list (cpp output) with doubles and spaces
|
# Build the raw list (cpp output) with doubles and spaces
|
||||||
$(BDIR)/rawlist:
|
$(BDIR)/rawlist:
|
||||||
# Dirty workaround for saving space on netinst images, we add some hints.
|
# Dirty workaround for saving space on netinst images, we add some hints.
|
||||||
|
@ -351,6 +361,16 @@ endif
|
||||||
-DFORCENONUSONCD1=$(forcenonusoncd1) \
|
-DFORCENONUSONCD1=$(forcenonusoncd1) \
|
||||||
-I $(BASEDIR)/tasks -I $(BDIR) - - >> $(BDIR)/rawlist
|
-I $(BASEDIR)/tasks -I $(BDIR) - - >> $(BDIR)/rawlist
|
||||||
|
|
||||||
|
# Build the raw list (cpp output) with doubles and spaces for excluded packages
|
||||||
|
$(BDIR)/rawlist-exclude:
|
||||||
|
$(Q)if [ -n $(EXCLUDE) ]; then \
|
||||||
|
perl -npe 's/\@ARCH\@/$(ARCH)/g' $(EXCLUDE) | \
|
||||||
|
cpp -nostdinc -nostdinc++ -P -undef -D ARCH=$(ARCH) -D ARCH_$(ARCH) \
|
||||||
|
-U $(ARCH) -U i386 -U linux -U unix \
|
||||||
|
-DFORCENONUSONCD1=$(forcenonusoncd1) \
|
||||||
|
-I $(BASEDIR)/tasks -I $(BDIR) - - >> $(BDIR)/rawlist-exclude; \
|
||||||
|
fi
|
||||||
|
|
||||||
## DIRECTORIES && PACKAGES && INFOS ##
|
## DIRECTORIES && PACKAGES && INFOS ##
|
||||||
|
|
||||||
# Create all the needed directories for installing packages (plus the
|
# Create all the needed directories for installing packages (plus the
|
||||||
|
|
|
@ -63,6 +63,8 @@ debian-cd (2.2.18) UNRELEASED; urgency=low
|
||||||
* Bdale Garbee
|
* Bdale Garbee
|
||||||
- shorten the command line in post-boot-hppa for sarge, as palo can't
|
- shorten the command line in post-boot-hppa for sarge, as palo can't
|
||||||
handle a command line longer than 127 chars right now
|
handle a command line longer than 127 chars right now
|
||||||
|
* Otavio Salvador
|
||||||
|
- Preprocess exclude files much like tasks files are. Closes: #247379
|
||||||
|
|
||||||
-- Raphael Hertzog <hertzog@debian.org> Thu, 25 Mar 2004 07:33:23 +0100
|
-- Raphael Hertzog <hertzog@debian.org> Thu, 25 Mar 2004 07:33:23 +0100
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ my $nonus = $ENV{'NONUS'} || 0;
|
||||||
my $forcenonusoncd1 = $ENV{'FORCENONUSONCD1'} || 0;
|
my $forcenonusoncd1 = $ENV{'FORCENONUSONCD1'} || 0;
|
||||||
my $local = $ENV{'LOCAL'} || 0;
|
my $local = $ENV{'LOCAL'} || 0;
|
||||||
my $complete = $ENV{'COMPLETE'} || 0;
|
my $complete = $ENV{'COMPLETE'} || 0;
|
||||||
my $exclude = $ENV{'EXCLUDE'} || "$list.exclude";
|
my $exclude = "$list.exclude";
|
||||||
my $norecommends = $ENV{'NORECOMMENDS'} || 0;
|
my $norecommends = $ENV{'NORECOMMENDS'} || 0;
|
||||||
my $nosuggests = $ENV{'NOSUGGESTS'} || 1;
|
my $nosuggests = $ENV{'NOSUGGESTS'} || 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue