1999-11-11 16:10:37 -01:00
|
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
2005-12-10 23:39:10 -01:00
|
|
|
|
# Main Makefile for debian-cd
|
1999-11-11 16:10:37 -01:00
|
|
|
|
#
|
|
|
|
|
# Copyright 1999 Rapha<68>l Hertzog <hertzog@debian.org>
|
|
|
|
|
# See the README file for the license
|
|
|
|
|
|
|
|
|
|
# The environment variables must have been set
|
|
|
|
|
# before. For this you can source the CONF.sh
|
|
|
|
|
# file in your shell
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## DEFAULT VALUES
|
2000-08-25 16:54:03 +00:00
|
|
|
|
ifndef VERBOSE_MAKE
|
|
|
|
|
Q=@
|
|
|
|
|
endif
|
1999-11-11 16:10:37 -01:00
|
|
|
|
ifndef SIZELIMIT
|
|
|
|
|
SIZELIMIT=$(shell echo -n $$[ 610 * 1024 * 1024 ])
|
|
|
|
|
endif
|
|
|
|
|
ifndef TASK
|
|
|
|
|
TASK=$(BASEDIR)/tasks/Debian_$(CODENAME)
|
|
|
|
|
endif
|
2000-05-18 22:49:02 +00:00
|
|
|
|
ifndef CAPCODENAME
|
|
|
|
|
CAPCODENAME:=$(shell perl -e "print ucfirst("$(CODENAME)")")
|
|
|
|
|
endif
|
1999-11-11 16:10:37 -01:00
|
|
|
|
ifndef BINDISKINFO
|
2003-12-18 09:22:38 -01:00
|
|
|
|
export BINDISKINFO="Debian GNU/Linux $(DEBVERSION) \"$(CAPCODENAME)\" - $(OFFICIAL) $(ARCH) Binary-$$num ($$DATE)"
|
1999-11-11 16:10:37 -01:00
|
|
|
|
endif
|
|
|
|
|
ifndef SRCDISKINFO
|
2003-12-18 09:22:38 -01:00
|
|
|
|
export SRCDISKINFO="Debian GNU/Linux $(DEBVERSION) \"$(CAPCODENAME)\" - $(OFFICIAL) Source-$$num ($$DATE)"
|
2000-05-18 22:49:02 +00:00
|
|
|
|
endif
|
|
|
|
|
# ND=No-Date versions for README
|
|
|
|
|
ifndef BINDISKINFOND
|
2003-12-18 09:22:38 -01:00
|
|
|
|
export BINDISKINFOND="Debian GNU/Linux $(DEBVERSION) \"$(CAPCODENAME)\" - $(OFFICIAL) $(ARCH) Binary-$$num"
|
2000-05-18 22:49:02 +00:00
|
|
|
|
endif
|
|
|
|
|
ifndef SRCDISKINFOND
|
2003-12-18 09:22:38 -01:00
|
|
|
|
export SRCDISKINFOND="Debian GNU/Linux $(DEBVERSION) \"$(CAPCODENAME)\" - $(OFFICIAL) Source-$$num"
|
1999-11-11 16:10:37 -01:00
|
|
|
|
endif
|
|
|
|
|
ifndef BINVOLID
|
2000-08-12 22:42:20 +00:00
|
|
|
|
ifeq ($(ARCH),powerpc)
|
|
|
|
|
BINVOLID="Debian $(DEBVERSION) ppc Bin-$$num"
|
|
|
|
|
else
|
|
|
|
|
BINVOLID="Debian $(DEBVERSION) $(ARCH) Bin-$$num"
|
|
|
|
|
endif
|
1999-11-11 16:10:37 -01:00
|
|
|
|
endif
|
|
|
|
|
ifndef SRCVOLID
|
2000-08-12 22:42:20 +00:00
|
|
|
|
SRCVOLID="Debian $(DEBVERSION) Src-$$num"
|
1999-11-11 16:10:37 -01:00
|
|
|
|
endif
|
|
|
|
|
ifndef MKISOFS
|
2005-09-14 18:28:10 +00:00
|
|
|
|
export MKISOFS=mkisofs
|
1999-11-11 16:10:37 -01:00
|
|
|
|
endif
|
|
|
|
|
ifndef MKISOFS_OPTS
|
|
|
|
|
#For normal users
|
2004-06-09 18:54:35 +00:00
|
|
|
|
MKISOFS_OPTS=-r
|
1999-11-11 16:10:37 -01:00
|
|
|
|
#For symlink farmers
|
2004-06-09 18:54:35 +00:00
|
|
|
|
#MKISOFS_OPTS=-r -F .
|
1999-11-11 16:10:37 -01:00
|
|
|
|
endif
|
|
|
|
|
ifndef HOOK
|
|
|
|
|
HOOK=$(BASEDIR)/tools/$(CODENAME).hook
|
|
|
|
|
endif
|
2004-07-11 09:34:59 +00:00
|
|
|
|
ifneq "$(wildcard $(MIRROR)/dists/$(DI_CODENAME)/main/disks-$(ARCH))" ""
|
1999-11-13 15:44:36 -01:00
|
|
|
|
ifndef BOOTDISKS
|
2004-07-11 09:34:59 +00:00
|
|
|
|
export BOOTDISKS=$(MIRROR)/dists/$(DI_CODENAME)/main/disks-$(ARCH)
|
1999-11-13 15:44:36 -01:00
|
|
|
|
endif
|
2003-07-24 17:41:53 +00:00
|
|
|
|
endif
|
2002-01-28 22:00:17 -01:00
|
|
|
|
ifndef DOJIGDO
|
|
|
|
|
export DOJIGDO=0
|
|
|
|
|
endif
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
2005-11-14 23:28:07 -01:00
|
|
|
|
# Netinst/businesscard CD have different udeb_include and udeb_exclude files
|
2003-05-07 18:06:52 +00:00
|
|
|
|
ifndef UDEB_INCLUDE
|
|
|
|
|
ifeq ($(INSTALLER_CD),1)
|
2004-07-11 09:34:59 +00:00
|
|
|
|
UDEB_INCLUDE=$(BASEDIR)/data/$(DI_CODENAME)/$(ARCH)_businesscard_udeb_include
|
2003-05-07 18:06:52 +00:00
|
|
|
|
endif
|
|
|
|
|
ifeq ($(INSTALLER_CD),2)
|
2004-07-11 09:34:59 +00:00
|
|
|
|
UDEB_INCLUDE=$(BASEDIR)/data/$(DI_CODENAME)/$(ARCH)_netinst_udeb_include
|
2003-05-07 18:06:52 +00:00
|
|
|
|
endif
|
|
|
|
|
endif
|
2004-07-11 21:34:25 +00:00
|
|
|
|
ifndef UDEB_INCLUDE
|
2004-07-11 21:50:41 +00:00
|
|
|
|
UDEB_INCLUDE=$(BASEDIR)/data/$(DI_CODENAME)/$(ARCH)_udeb_include
|
2004-07-11 21:34:25 +00:00
|
|
|
|
endif
|
2005-11-14 23:28:07 -01:00
|
|
|
|
ifndef UDEB_EXCLUDE
|
|
|
|
|
ifeq ($(INSTALLER_CD),1)
|
|
|
|
|
UDEB_EXCLUDE=$(BASEDIR)/data/$(DI_CODENAME)/businesscard_udeb_exclude
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(INSTALLER_CD),2)
|
|
|
|
|
UDEB_EXCLUDE=$(BASEDIR)/data/$(DI_CODENAME)/netinst_udeb_exclude
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
ifndef UDEB_EXCLUDE
|
|
|
|
|
UDEB_EXCLUDE=$(BASEDIR)/data/$(DI_CODENAME)/udeb_exclude
|
|
|
|
|
endif
|
2003-05-07 18:06:52 +00:00
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
|
## Internal variables
|
|
|
|
|
apt=$(BASEDIR)/tools/apt-selection
|
|
|
|
|
list2cds=$(BASEDIR)/tools/list2cds
|
|
|
|
|
cds2src=$(BASEDIR)/tools/cds2src
|
|
|
|
|
master2tasks=$(BASEDIR)/tools/master2tasks
|
|
|
|
|
mirrorcheck=$(BASEDIR)/tools/mirror_check
|
2001-04-14 20:57:06 +00:00
|
|
|
|
add_packages=$(BASEDIR)/tools/add_packages
|
|
|
|
|
add_dirs=$(BASEDIR)/tools/add_dirs
|
2000-06-16 23:42:50 +00:00
|
|
|
|
add_bin_doc=$(BASEDIR)/tools/add-bin-doc
|
1999-11-11 16:10:37 -01:00
|
|
|
|
scanpackages=$(BASEDIR)/tools/scanpackages
|
|
|
|
|
scansources=$(BASEDIR)/tools/scansources
|
2001-04-14 20:57:06 +00:00
|
|
|
|
add_files=$(BASEDIR)/tools/add_files
|
1999-11-11 16:10:37 -01:00
|
|
|
|
set_mkisofs_opts=$(BASEDIR)/tools/set_mkisofs_opts
|
2000-06-16 23:42:50 +00:00
|
|
|
|
strip_nonus_bin=$(BASEDIR)/tools/strip-nonUS-bin
|
2001-04-14 20:57:06 +00:00
|
|
|
|
add_secured=$(BASEDIR)/tools/add_secured
|
2005-09-14 18:28:10 +00:00
|
|
|
|
md5sum=md5sum
|
2002-05-05 12:08:27 +00:00
|
|
|
|
fastsums=$(BASEDIR)/tools/fast_sums
|
2005-12-06 23:12:11 -01:00
|
|
|
|
jigdo_cleanup=$(BASEDIR)/tools/jigdo_cleanup
|
|
|
|
|
grab_md5=$(BASEDIR)/tools/grab_md5
|
|
|
|
|
dedicated-src=$(BASEDIR)/tools/dedicated_source
|
2005-12-08 21:55:19 -01:00
|
|
|
|
make_image=$(BASEDIR)/tools/make_image
|
2005-12-10 23:39:10 -01:00
|
|
|
|
add_debs=$(BASEDIR)/tools/add_debs
|
|
|
|
|
add_source_packages=$(BASEDIR)/tools/add_source_packages
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
|
|
|
|
BDIR=$(TDIR)/$(CODENAME)-$(ARCH)
|
2000-03-14 03:02:29 -01:00
|
|
|
|
ADIR=$(APTTMP)/$(CODENAME)-$(ARCH)
|
1999-11-11 16:10:37 -01:00
|
|
|
|
SDIR=$(TDIR)/$(CODENAME)-src
|
|
|
|
|
|
2000-06-16 23:42:50 +00:00
|
|
|
|
FIRSTDISKS=CD1
|
|
|
|
|
ifdef FORCENONUSONCD1
|
|
|
|
|
FIRSTDISKS=CD1 CD1_NONUS
|
2000-06-30 00:04:03 +00:00
|
|
|
|
forcenonusoncd1=1
|
|
|
|
|
else
|
|
|
|
|
forcenonusoncd1=0
|
2000-06-16 23:42:50 +00:00
|
|
|
|
endif
|
|
|
|
|
|
2005-09-14 18:28:10 +00:00
|
|
|
|
# Ensure that debootstrap is in the path.
|
2005-09-14 19:07:17 +00:00
|
|
|
|
PATH:=$(PATH):/usr/sbin
|
2005-09-14 18:28:10 +00:00
|
|
|
|
|
2000-05-18 22:49:02 +00:00
|
|
|
|
## DEBUG STUFF ##
|
|
|
|
|
|
|
|
|
|
PrintVars:
|
|
|
|
|
@num=1; \
|
|
|
|
|
DATE=`date +%Y%m%d` ; \
|
|
|
|
|
echo BINDISKINFO: ; \
|
|
|
|
|
echo $(BINDISKINFO) ; \
|
|
|
|
|
echo SRCDISKINFO: ; \
|
|
|
|
|
echo $(SRCDISKINFO) ; \
|
|
|
|
|
echo BINDISKINFOND: ; \
|
|
|
|
|
echo $(BINDISKINFOND) ; \
|
|
|
|
|
echo SRCDISKINFOND: ; \
|
|
|
|
|
echo $(SRCDISKINFOND) ; \
|
|
|
|
|
echo BINVOLID: ; \
|
|
|
|
|
echo $(BINVOLID) ; \
|
|
|
|
|
echo SRCVOLID: ; \
|
|
|
|
|
echo $(SRCVOLID) ; \
|
|
|
|
|
|
2003-07-28 21:19:56 +00:00
|
|
|
|
default:
|
|
|
|
|
@echo "Please refer to the README file for more information"
|
|
|
|
|
@echo "about the different targets available."
|
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
|
## CHECKS ##
|
|
|
|
|
|
|
|
|
|
# Basic checks in order to avoid problems
|
2003-07-28 21:19:56 +00:00
|
|
|
|
ok:
|
1999-11-11 16:10:37 -01:00
|
|
|
|
ifndef TDIR
|
2003-09-10 11:32:17 +00:00
|
|
|
|
@echo TDIR undefined -- set up CONF.sh; false
|
1999-11-11 16:10:37 -01:00
|
|
|
|
endif
|
|
|
|
|
ifndef BASEDIR
|
2003-09-10 11:32:17 +00:00
|
|
|
|
@echo BASEDIR undefined -- set up CONF.sh; false
|
1999-11-11 16:10:37 -01:00
|
|
|
|
endif
|
|
|
|
|
ifndef MIRROR
|
2003-09-10 11:32:17 +00:00
|
|
|
|
@echo MIRROR undefined -- set up CONF.sh; false
|
1999-11-11 16:10:37 -01:00
|
|
|
|
endif
|
|
|
|
|
ifndef ARCH
|
2003-09-10 11:32:17 +00:00
|
|
|
|
@echo ARCH undefined -- set up CONF.sh; false
|
1999-11-11 16:10:37 -01:00
|
|
|
|
endif
|
|
|
|
|
ifndef CODENAME
|
2003-09-10 11:32:17 +00:00
|
|
|
|
@echo CODENAME undefined -- set up CONF.sh; false
|
1999-11-11 16:10:37 -01:00
|
|
|
|
endif
|
|
|
|
|
ifndef OUT
|
2003-09-10 11:32:17 +00:00
|
|
|
|
@echo OUT undefined -- set up CONF.sh; false
|
1999-11-11 16:10:37 -01:00
|
|
|
|
endif
|
2000-06-06 17:19:27 +00:00
|
|
|
|
ifdef NONFREE
|
|
|
|
|
ifdef EXTRANONFREE
|
2003-07-28 21:19:56 +00:00
|
|
|
|
@echo Never use NONFREE and EXTRANONFREE at the same time; false
|
2000-06-06 17:19:27 +00:00
|
|
|
|
endif
|
|
|
|
|
endif
|
2000-06-16 23:42:50 +00:00
|
|
|
|
ifdef FORCENONUSONCD1
|
|
|
|
|
ifndef NONUS
|
2003-07-28 21:19:56 +00:00
|
|
|
|
@echo If we have FORCENONUSONCD1 set, we must also have NONUS set; false
|
2000-06-16 23:42:50 +00:00
|
|
|
|
endif
|
|
|
|
|
endif
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
|
|
|
|
## INITIALIZATION ##
|
|
|
|
|
|
|
|
|
|
# Creation of the directories needed
|
2004-07-11 09:34:59 +00:00
|
|
|
|
init: ok $(OUT) $(TDIR) $(BDIR) $(SDIR) $(ADIR) unstable-map
|
2004-06-24 09:41:22 +00:00
|
|
|
|
$(OUT):
|
|
|
|
|
$(Q)mkdir -p $(OUT)
|
1999-11-11 16:10:37 -01:00
|
|
|
|
$(TDIR):
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)mkdir -p $(TDIR)
|
1999-11-11 16:10:37 -01:00
|
|
|
|
$(BDIR):
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)mkdir -p $(BDIR)
|
1999-11-11 16:10:37 -01:00
|
|
|
|
$(SDIR):
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)mkdir -p $(SDIR)
|
2000-03-14 03:02:29 -01:00
|
|
|
|
$(ADIR):
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)mkdir -p $(ADIR)
|
2001-11-09 06:55:23 -01:00
|
|
|
|
$(Q)mkdir -p $(ADIR)/apt-ftparchive-db
|
2005-09-07 15:21:11 +00:00
|
|
|
|
# Make sure unstable/sid points to testing/etch, as there is no build
|
|
|
|
|
# rule for unstable/sid.
|
2004-07-11 09:34:59 +00:00
|
|
|
|
unstable-map:
|
|
|
|
|
$(Q)if [ ! -d $(BASEDIR)/data/sid ] ; then \
|
2005-09-07 15:21:11 +00:00
|
|
|
|
ln -s etch $(BASEDIR)/data/sid ; \
|
2004-07-11 09:34:59 +00:00
|
|
|
|
fi
|
|
|
|
|
$(Q)if [ ! -d $(BASEDIR)/tools/boot/sid ] ; then \
|
2005-09-07 15:21:11 +00:00
|
|
|
|
ln -s etch $(BASEDIR)/tools/boot/sid ; \
|
2004-07-11 09:34:59 +00:00
|
|
|
|
fi
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
|
|
|
|
## CLEANINGS ##
|
|
|
|
|
|
|
|
|
|
# CLeans the current arch tree (but not packages selection info)
|
|
|
|
|
clean: ok bin-clean src-clean
|
|
|
|
|
bin-clean:
|
2004-08-18 17:07:28 +00:00
|
|
|
|
$(Q)rm -rf $(BDIR)/CD[1234567890]*
|
2003-07-30 13:26:55 +00:00
|
|
|
|
$(Q)rm -rf $(BDIR)/*_NONUS
|
|
|
|
|
$(Q)rm -f $(BDIR)/*.filelist*
|
|
|
|
|
$(Q)rm -f $(BDIR)/packages-stamp $(BDIR)/bootable-stamp \
|
2005-12-06 23:12:11 -01:00
|
|
|
|
$(BDIR)/upgrade-stamp $(BDIR)/secured-stamp $(BDIR)/md5-check
|
1999-11-11 16:10:37 -01:00
|
|
|
|
src-clean:
|
2004-08-18 17:07:28 +00:00
|
|
|
|
$(Q)rm -rf $(SDIR)/CD[1234567890]*
|
2003-07-30 13:26:55 +00:00
|
|
|
|
$(Q)rm -rf $(SDIR)/*_NONUS
|
2005-12-06 23:12:11 -01:00
|
|
|
|
$(Q)rm -rf $(SDIR)/sources-stamp $(SDIR)/secured-stamp $(SDIR)/md5-check
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
|
|
|
|
# Completely cleans the current arch tree
|
|
|
|
|
realclean: distclean
|
|
|
|
|
distclean: ok bin-distclean src-distclean
|
|
|
|
|
bin-distclean:
|
2004-07-09 23:07:11 +00:00
|
|
|
|
$(Q)echo "Cleaning the binary build directory"
|
2003-07-30 13:26:55 +00:00
|
|
|
|
$(Q)rm -rf $(BDIR)
|
|
|
|
|
$(Q)rm -rf $(ADIR)
|
1999-11-11 16:10:37 -01:00
|
|
|
|
src-distclean:
|
2004-07-09 23:07:11 +00:00
|
|
|
|
$(Q)echo "Cleaning the source build directory"
|
2003-07-30 13:26:55 +00:00
|
|
|
|
$(Q)rm -rf $(SDIR)
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
|
|
|
|
## STATUS and APT ##
|
|
|
|
|
|
|
|
|
|
# Regenerate the status file with only packages that
|
|
|
|
|
# are of priority standard or higher
|
2000-03-14 03:02:29 -01:00
|
|
|
|
status: init $(ADIR)/status
|
|
|
|
|
$(ADIR)/status:
|
1999-11-11 16:10:37 -01:00
|
|
|
|
@echo "Generating a fake status file for apt-get and apt-cache..."
|
2002-12-26 09:39:02 -01:00
|
|
|
|
$(Q)if [ "$(INSTALLER_CD)" = "1" -o "$(INSTALLER_CD)" = "2" ];then \
|
|
|
|
|
:> $(ADIR)/status ; \
|
|
|
|
|
else \
|
|
|
|
|
zcat $(MIRROR)/dists/$(CODENAME)/main/binary-$(ARCH)/Packages.gz | \
|
|
|
|
|
perl -000 -ne 's/^(Package: .*)$$/$$1\nStatus: install ok installed/m; \
|
2006-11-14 09:05:21 -01:00
|
|
|
|
print if (/^Priority: (required|important|standard)/m or /^Section: base/m);' \
|
2002-12-26 09:39:02 -01:00
|
|
|
|
> $(ADIR)/status ; \
|
|
|
|
|
fi
|
1999-11-11 16:10:37 -01:00
|
|
|
|
# Updating the apt database
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)$(apt) update
|
1999-11-11 16:10:37 -01:00
|
|
|
|
#
|
|
|
|
|
# Checking the consistence of the standard system
|
|
|
|
|
# If this does fail, then launch make correctstatus
|
|
|
|
|
#
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)$(apt) check || $(MAKE) correctstatus
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
|
|
|
|
# Only useful if the standard system is broken
|
|
|
|
|
# It tries to build a better status file with apt-get -f install
|
|
|
|
|
correctstatus: status apt-update
|
|
|
|
|
# You may need to launch correctstatus more than one time
|
|
|
|
|
# in order to correct all dependencies
|
|
|
|
|
#
|
|
|
|
|
# Removing packages from the system :
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)set -e; \
|
|
|
|
|
for i in `$(apt) deselected -f install`; do \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
echo $$i; \
|
|
|
|
|
perl -i -000 -ne "print unless /^Package: \Q$$i\E/m" \
|
2000-03-14 03:02:29 -01:00
|
|
|
|
$(ADIR)/status; \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
done
|
|
|
|
|
#
|
|
|
|
|
# Adding packages to the system :
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)set -e; \
|
|
|
|
|
for i in `$(apt) selected -f install`; do \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
echo $$i; \
|
|
|
|
|
$(apt) cache dumpavail | perl -000 -ne \
|
|
|
|
|
"s/^(Package: .*)\$$/\$$1\nStatus: install ok installed/m; \
|
|
|
|
|
print if /^Package: \Q$$i\E\s*\$$/m;" \
|
2000-03-14 03:02:29 -01:00
|
|
|
|
>> $(ADIR)/status; \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
done
|
|
|
|
|
#
|
|
|
|
|
# Showing the output of apt-get check :
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)$(apt) check
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
|
|
|
|
apt-update: status
|
|
|
|
|
@echo "Apt-get is updating his files ..."
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)$(apt) update
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## GENERATING LISTS ##
|
|
|
|
|
|
|
|
|
|
# Deleting the list only
|
|
|
|
|
deletelist: ok
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)-rm $(BDIR)/rawlist
|
2004-05-04 21:57:10 +00:00
|
|
|
|
$(Q)-rm $(BDIR)/rawlist-exclude
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)-rm $(BDIR)/list
|
2004-05-04 21:57:10 +00:00
|
|
|
|
$(Q)-rm $(BDIR)/list.exclude
|
2000-06-16 23:42:50 +00:00
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
|
# Generates the list of packages/files to put on each CD
|
|
|
|
|
list: bin-list src-list
|
|
|
|
|
|
|
|
|
|
# Generate the listing of binary packages
|
|
|
|
|
bin-list: ok apt-update genlist $(BDIR)/1.packages
|
|
|
|
|
$(BDIR)/1.packages:
|
|
|
|
|
@echo "Dispatching the packages on all the CDs ..."
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)$(list2cds) $(BDIR)/list $(SIZELIMIT)
|
2000-06-16 23:42:50 +00:00
|
|
|
|
ifdef FORCENONUSONCD1
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)set -e; \
|
|
|
|
|
for file in $(BDIR)/*.packages; do \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
newfile=$${file%%.packages}_NONUS.packages; \
|
|
|
|
|
cp $$file $$newfile; \
|
|
|
|
|
$(strip_nonus_bin) $$file $$file.tmp; \
|
|
|
|
|
if (cmp -s $$file $$file.tmp) ; then \
|
|
|
|
|
rm -f $$file.tmp $$newfile ; \
|
|
|
|
|
else \
|
|
|
|
|
echo Splitting non-US packages: $$file and $$newfile ; \
|
|
|
|
|
mv -f $$file.tmp $$file; \
|
|
|
|
|
fi ;\
|
|
|
|
|
done
|
|
|
|
|
endif
|
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
|
# Generate the listing for sources CDs corresponding to the packages included
|
|
|
|
|
# in the binary set
|
|
|
|
|
src-list: bin-list $(SDIR)/1.sources
|
|
|
|
|
$(SDIR)/1.sources:
|
|
|
|
|
@echo "Dispatching the sources on all the CDs ..."
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)$(cds2src) $(SIZELIMIT)
|
2000-06-16 23:42:50 +00:00
|
|
|
|
ifdef FORCENONUSONCD1
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)set -e; \
|
|
|
|
|
for file in $(SDIR)/*.sources; do \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
newfile=$${file%%.sources}_NONUS.sources; \
|
|
|
|
|
cp $$file $$newfile; \
|
|
|
|
|
grep -v non-US $$file >$$file.tmp; \
|
|
|
|
|
if (cmp -s $$file $$file.tmp) ; then \
|
|
|
|
|
rm -f $$file.tmp $$newfile ; \
|
|
|
|
|
else \
|
|
|
|
|
echo Splitting non-US sources: $$file and $$newfile ; \
|
|
|
|
|
mv -f $$file.tmp $$file; \
|
|
|
|
|
fi ;\
|
|
|
|
|
done
|
|
|
|
|
endif
|
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
|
# Generate the complete listing of packages from the task
|
|
|
|
|
# Build a nice list without doubles and without spaces
|
2004-05-04 21:57:10 +00:00
|
|
|
|
genlist: ok $(BDIR)/list $(BDIR)/list.exclude
|
1999-11-11 16:10:37 -01:00
|
|
|
|
$(BDIR)/list: $(BDIR)/rawlist
|
|
|
|
|
@echo "Generating the complete list of packages to be included ..."
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)perl -ne 'chomp; next if /^\s*$$/; \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
print "$$_\n" if not $$seen{$$_}; $$seen{$$_}++;' \
|
|
|
|
|
$(BDIR)/rawlist \
|
|
|
|
|
> $(BDIR)/list
|
|
|
|
|
|
2004-05-04 21:57:10 +00:00
|
|
|
|
|
|
|
|
|
$(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
|
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
|
# Build the raw list (cpp output) with doubles and spaces
|
|
|
|
|
$(BDIR)/rawlist:
|
2005-12-27 03:25:23 -01:00
|
|
|
|
# Dirty workaround for saving space, we add some hints to break ties.
|
2004-04-21 20:17:53 +00:00
|
|
|
|
# This is just a temporal solution, list2cds should be a little bit less
|
|
|
|
|
# silly so that this is not needed. For more info have a look at
|
|
|
|
|
# http://lists.debian.org/debian-cd/2004/debian-cd-200404/msg00093.html
|
2004-06-07 09:35:40 +00:00
|
|
|
|
ifneq ($(INSTALLER_CD),1)
|
2005-12-27 03:25:23 -01:00
|
|
|
|
ifeq ($(INSTALLER_CD),2)
|
|
|
|
|
/bin/echo -e "mawk\nunifont\npptp-linux" >>$(BDIR)/rawlist
|
|
|
|
|
else
|
2005-12-17 18:14:31 -01:00
|
|
|
|
/bin/echo -e "mawk\nexim4-daemon-light\nunifont\npptp-linux" >>$(BDIR)/rawlist
|
2004-06-07 09:35:40 +00:00
|
|
|
|
endif
|
2005-12-27 03:25:23 -01:00
|
|
|
|
endif # INSTALLER_CD 1
|
2000-06-16 23:42:50 +00:00
|
|
|
|
ifdef FORCENONUSONCD1
|
2001-02-27 00:01:40 -01:00
|
|
|
|
$(Q)$(apt) cache dumpavail | \
|
2002-07-01 18:25:08 +00:00
|
|
|
|
grep-dctrl -FSection -n -sPackage -e '^(non-US|non-us)' - | \
|
2001-02-27 00:01:40 -01:00
|
|
|
|
sort | uniq > $(BDIR)/Debian_$(CODENAME)_nonUS
|
2000-06-16 23:42:50 +00:00
|
|
|
|
endif
|
2005-09-14 18:21:31 +00:00
|
|
|
|
$(Q)if [ _$(INSTALLER_CD) != _1 ]; then \
|
2005-10-30 18:12:22 -01:00
|
|
|
|
mkdir -p $(TDIR); \
|
|
|
|
|
debootstrap --arch $(ARCH) --print-debs $(CODENAME) $(TDIR)/debootstrap.tmp file:$(MIRROR) \
|
2002-02-11 13:04:08 -01:00
|
|
|
|
| tr ' ' '\n' >>$(BDIR)/rawlist; \
|
2005-10-30 18:12:22 -01:00
|
|
|
|
rm -rf $(TDIR)/debootstrap.tmp; \
|
2002-02-04 13:09:13 -01:00
|
|
|
|
fi
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)perl -npe 's/\@ARCH\@/$(ARCH)/g' $(TASK) | \
|
2004-07-11 09:44:00 +00:00
|
|
|
|
cpp -nostdinc -nostdinc++ -P -undef -D ARCH=$(ARCH) -D ARCH_$(subst -,_,$(ARCH)) \
|
2002-01-13 17:05:57 -01:00
|
|
|
|
-U $(ARCH) -U i386 -U linux -U unix \
|
2000-06-30 00:04:03 +00:00
|
|
|
|
-DFORCENONUSONCD1=$(forcenonusoncd1) \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
-I $(BASEDIR)/tasks -I $(BDIR) - - >> $(BDIR)/rawlist
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
2004-05-04 21:57:10 +00:00
|
|
|
|
# Build the raw list (cpp output) with doubles and spaces for excluded packages
|
|
|
|
|
$(BDIR)/rawlist-exclude:
|
2004-05-12 18:19:27 +00:00
|
|
|
|
$(Q)if [ -n "$(EXCLUDE)" ]; then \
|
2004-05-04 21:57:10 +00:00
|
|
|
|
perl -npe 's/\@ARCH\@/$(ARCH)/g' $(EXCLUDE) | \
|
2004-07-11 09:44:00 +00:00
|
|
|
|
cpp -nostdinc -nostdinc++ -P -undef -D ARCH=$(ARCH) -D ARCH_$(subst -,_,$(ARCH)) \
|
2004-05-04 21:57:10 +00:00
|
|
|
|
-U $(ARCH) -U i386 -U linux -U unix \
|
|
|
|
|
-DFORCENONUSONCD1=$(forcenonusoncd1) \
|
|
|
|
|
-I $(BASEDIR)/tasks -I $(BDIR) - - >> $(BDIR)/rawlist-exclude; \
|
2004-05-12 18:19:27 +00:00
|
|
|
|
else \
|
|
|
|
|
echo > $(BDIR)/rawlist-exclude; \
|
2004-05-04 21:57:10 +00:00
|
|
|
|
fi
|
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
|
## DIRECTORIES && PACKAGES && INFOS ##
|
|
|
|
|
|
|
|
|
|
# Create all the needed directories for installing packages (plus the
|
|
|
|
|
# .disk directory)
|
|
|
|
|
tree: bin-tree src-tree
|
2000-06-16 23:42:50 +00:00
|
|
|
|
bin-tree: ok bin-list $(BDIR)/CD1/debian
|
|
|
|
|
$(BDIR)/CD1/debian:
|
1999-11-11 16:10:37 -01:00
|
|
|
|
@echo "Adding the required directories to the binary CDs ..."
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)set -e; \
|
|
|
|
|
for i in $(BDIR)/*.packages; do \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
dir=$${i%%.packages}; \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
dir=$${dir##$(BDIR)/}; \
|
|
|
|
|
dir=$(BDIR)/CD$$dir; \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
mkdir -p $$dir; \
|
2001-04-14 20:57:06 +00:00
|
|
|
|
$(add_dirs) $$dir; \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
done
|
2000-06-16 23:42:50 +00:00
|
|
|
|
|
|
|
|
|
src-tree: ok src-list $(SDIR)/CD1/debian
|
|
|
|
|
$(SDIR)/CD1/debian:
|
1999-11-11 16:10:37 -01:00
|
|
|
|
@echo "Adding the required directories to the source CDs ..."
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)set -e; \
|
|
|
|
|
for i in $(SDIR)/*.sources; do \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
dir=$${i%%.sources}; \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
dir=$${dir##$(SDIR)/}; \
|
|
|
|
|
dir=$(SDIR)/CD$$dir; \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
mkdir -p $$dir; \
|
2001-04-14 20:57:06 +00:00
|
|
|
|
$(add_dirs) $$dir; \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# CD labels / volume ids / disk info
|
|
|
|
|
infos: bin-infos src-infos
|
2000-06-16 23:42:50 +00:00
|
|
|
|
bin-infos: bin-tree $(BDIR)/CD1/.disk/info
|
|
|
|
|
$(BDIR)/CD1/.disk/info:
|
1999-11-11 16:10:37 -01:00
|
|
|
|
@echo "Generating the binary CD labels and their volume ids ..."
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)set -e; \
|
2005-04-24 20:46:06 +00:00
|
|
|
|
nb=`ls -l $(BDIR)/?.packages $(BDIR)/??.packages | wc -l | tr -d " "`; num=0;\
|
1999-11-11 16:10:37 -01:00
|
|
|
|
DATE=`date +%Y%m%d`; \
|
|
|
|
|
for i in $(BDIR)/*.packages; do \
|
|
|
|
|
num=$${i%%.packages}; num=$${num##$(BDIR)/}; \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
dir=$(BDIR)/CD$$num; \
|
|
|
|
|
echo -n $(BINDISKINFO) | sed 's/_NONUS//g' > $$dir/.disk/info; \
|
2005-12-18 18:34:35 -01:00
|
|
|
|
echo -n $(BINDISKINFOND) | sed 's/_NONUS//g' > $(BDIR)/$$num.diskinfo; \
|
2000-07-18 15:11:54 +00:00
|
|
|
|
echo '#define DISKNAME ' $(BINDISKINFOND) | sed 's/_NONUS//g' \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
> $$dir/README.diskdefines; \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
echo '#define TYPE binary' \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
>> $$dir/README.diskdefines; \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
echo '#define TYPEbinary 1' \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
>> $$dir/README.diskdefines; \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
echo '#define ARCH ' $(ARCH) \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
>> $$dir/README.diskdefines; \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
echo '#define ARCH'$(ARCH) ' 1' \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
>> $$dir/README.diskdefines; \
|
2000-07-18 15:11:54 +00:00
|
|
|
|
echo '#define DISKNUM ' $$num | sed 's/_NONUS//g' \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
>> $$dir/README.diskdefines; \
|
2000-07-18 15:11:54 +00:00
|
|
|
|
echo '#define DISKNUM'$$num ' 1' | sed 's/_NONUS//g' \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
>> $$dir/README.diskdefines; \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
echo '#define TOTALNUM ' $$nb \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
>> $$dir/README.diskdefines; \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
echo '#define TOTALNUM'$$nb ' 1' \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
>> $$dir/README.diskdefines; \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
echo -n $(BINVOLID) > $(BDIR)/$${num}.volid; \
|
|
|
|
|
$(set_mkisofs_opts) bin $$num > $(BDIR)/$${num}.mkisofs_opts; \
|
|
|
|
|
done
|
2000-06-16 23:42:50 +00:00
|
|
|
|
src-infos: src-tree $(SDIR)/CD1/.disk/info
|
|
|
|
|
$(SDIR)/CD1/.disk/info:
|
1999-11-11 16:10:37 -01:00
|
|
|
|
@echo "Generating the source CD labels and their volume ids ..."
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)set -e; \
|
2005-04-24 20:46:06 +00:00
|
|
|
|
nb=`ls -l $(SDIR)/?.sources $(SDIR)/??.sources | wc -l | tr -d " "`; num=0;\
|
1999-11-11 16:10:37 -01:00
|
|
|
|
DATE=`date +%Y%m%d`; \
|
|
|
|
|
for i in $(SDIR)/*.sources; do \
|
|
|
|
|
num=$${i%%.sources}; num=$${num##$(SDIR)/}; \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
dir=$(SDIR)/CD$$num; \
|
|
|
|
|
echo -n $(SRCDISKINFO) | sed 's/_NONUS//g' > $$dir/.disk/info; \
|
2005-12-18 18:34:35 -01:00
|
|
|
|
echo -n $(SRCDISKINFOND) | sed 's/_NONUS//g' > $(SDIR)/$$num.diskinfo; \
|
2000-07-18 15:11:54 +00:00
|
|
|
|
echo '#define DISKNAME ' $(SRCDISKINFOND) | sed 's/_NONUS//g' \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
> $$dir/README.diskdefines; \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
echo '#define TYPE source' \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
>> $$dir/README.diskdefines; \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
echo '#define TYPEsource 1' \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
>> $$dir/README.diskdefines; \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
echo '#define ARCH ' $(ARCH) \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
>> $$dir/README.diskdefines; \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
echo '#define ARCH'$(ARCH) ' 1' \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
>> $$dir/README.diskdefines; \
|
2000-07-18 15:11:54 +00:00
|
|
|
|
echo '#define DISKNUM ' $$num | sed 's/_NONUS//g' \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
>> $$dir/README.diskdefines; \
|
2000-07-18 15:11:54 +00:00
|
|
|
|
echo '#define DISKNUM'$$num ' 1' | sed 's/_NONUS//g' \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
>> $$dir/README.diskdefines; \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
echo '#define TOTALNUM ' $$nb \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
>> $$dir/README.diskdefines; \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
echo '#define TOTALNUM'$$nb ' 1' \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
>> $$dir/README.diskdefines; \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
echo -n $(SRCVOLID) > $(SDIR)/$${num}.volid; \
|
|
|
|
|
$(set_mkisofs_opts) src $$num > $(SDIR)/$${num}.mkisofs_opts; \
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Adding the deb files to the images
|
|
|
|
|
packages: bin-infos bin-list $(BDIR)/packages-stamp
|
|
|
|
|
$(BDIR)/packages-stamp:
|
2005-12-10 23:39:10 -01:00
|
|
|
|
$(Q)$(add_debs) "$(BDIR)" "$(TDIR)" "$(FIRSTDISKS)" "$(ARCH)" "$(BASE_INCLUDE)" "$(BASE_EXCLUDE)" "$(UDEB_INCLUDE)" "$(UDEB_EXCLUDE)" "$(add_packages)" "$(scanpackages)"
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)touch $(BDIR)/packages-stamp
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
|
|
|
|
sources: src-infos src-list $(SDIR)/sources-stamp
|
|
|
|
|
$(SDIR)/sources-stamp:
|
2005-12-10 23:39:10 -01:00
|
|
|
|
$(Q)$(add_source_packages) "$(SDIR)" "$(add_files)" "$(MIRROR)" "$(LOCAL)" "$(LOCALDEBS)" "$(scansources)"
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)touch $(SDIR)/sources-stamp
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
|
|
|
|
## BOOT & DOC & INSTALL ##
|
|
|
|
|
|
2001-06-13 21:11:37 +00:00
|
|
|
|
# Basic checks
|
|
|
|
|
$(MIRROR)/doc: need-complete-mirror
|
|
|
|
|
$(MIRROR)/tools: need-complete-mirror
|
|
|
|
|
need-complete-mirror:
|
2001-06-14 21:05:36 +00:00
|
|
|
|
@# Why the hell is this needed ??
|
|
|
|
|
@if [ ! -d $(MIRROR)/doc -o ! -d $(MIRROR)/tools ]; then \
|
|
|
|
|
echo "You need a Debian mirror with the doc, tools and"; \
|
|
|
|
|
echo "indices directories ! "; \
|
|
|
|
|
exit 1; \
|
|
|
|
|
fi
|
2001-11-06 23:22:30 -01:00
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
|
# Add everything that is needed to make the CDs bootable
|
|
|
|
|
bootable: ok disks installtools $(BDIR)/bootable-stamp
|
|
|
|
|
$(BDIR)/bootable-stamp:
|
|
|
|
|
@echo "Making the binary CDs bootable ..."
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)set -e; \
|
|
|
|
|
for file in $(BDIR)/*.packages; do \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
dir=$${file%%.packages}; \
|
|
|
|
|
n=$${dir##$(BDIR)/}; \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
dir=$(BDIR)/CD$$n; \
|
2004-07-11 09:34:59 +00:00
|
|
|
|
if [ -f $(BASEDIR)/tools/boot/$(DI_CODENAME)/boot-$(ARCH) ]; then \
|
2002-10-13 20:08:06 +00:00
|
|
|
|
cd $(BDIR); \
|
2004-07-11 09:34:59 +00:00
|
|
|
|
echo "Running tools/boot/$(DI_CODENAME)/boot-$(ARCH) $$n $$dir" ; \
|
|
|
|
|
$(BASEDIR)/tools/boot/$(DI_CODENAME)/boot-$(ARCH) $$n $$dir; \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
else \
|
2002-10-13 20:08:06 +00:00
|
|
|
|
if [ "$${IGNORE_MISSING_BOOT_SCRIPT:-0}" = "0" ]; then \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
echo "No script to make CDs bootable for $(ARCH) ..."; \
|
|
|
|
|
exit 1; \
|
2002-10-13 20:08:06 +00:00
|
|
|
|
fi; \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
fi; \
|
|
|
|
|
done
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)touch $(BDIR)/bootable-stamp
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
|
|
|
|
# Add the doc files to the CDs and the Release-Notes and the
|
|
|
|
|
# Contents-$(ARCH).gz files
|
2001-06-13 21:11:37 +00:00
|
|
|
|
bin-doc: ok bin-infos $(MIRROR)/doc $(BDIR)/CD1/doc
|
2000-06-16 23:42:50 +00:00
|
|
|
|
$(BDIR)/CD1/doc:
|
2000-05-18 22:49:02 +00:00
|
|
|
|
@echo "Adding the documentation (bin) ..."
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)set -e; \
|
|
|
|
|
for DISK in $(FIRSTDISKS) ; do \
|
2001-04-14 20:57:06 +00:00
|
|
|
|
$(add_files) $(BDIR)/$$DISK $(MIRROR) doc; \
|
2004-03-16 08:51:53 -01:00
|
|
|
|
find $(BDIR)/$$DISK/doc -name "dedication-*" | \
|
|
|
|
|
grep -v $DEBVERSION | xargs rm -f; \
|
2004-03-25 05:35:36 -01:00
|
|
|
|
find $(BDIR)/$$DISK/doc -name "debian-keyring.tar.gz" | \
|
|
|
|
|
xargs rm -f; \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
done
|
2000-09-03 16:45:04 +00:00
|
|
|
|
@for DISK in $(FIRSTDISKS) ; do \
|
|
|
|
|
mkdir $(BDIR)/$$DISK/doc/FAQ/html ; \
|
|
|
|
|
cd $(BDIR)/$$DISK/doc/FAQ/html ; \
|
2002-10-11 09:46:54 +00:00
|
|
|
|
if [ -e "../debian-faq.en.html.tar.gz" ]; then \
|
|
|
|
|
tar xzvf ../debian-faq.en.html.tar.gz ; \
|
|
|
|
|
else \
|
|
|
|
|
tar xzvf ../debian-faq.html.tar.gz ; \
|
|
|
|
|
fi; \
|
2000-09-03 16:45:04 +00:00
|
|
|
|
done
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)$(add_bin_doc) # Common stuff for all disks
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
2000-06-16 23:42:50 +00:00
|
|
|
|
src-doc: ok src-infos $(SDIR)/CD1/README.html
|
|
|
|
|
$(SDIR)/CD1/README.html:
|
2000-05-18 22:49:02 +00:00
|
|
|
|
@echo "Adding the documentation (src) ..."
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)set -e; \
|
|
|
|
|
for i in $(SDIR)/*.sources; do \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
dir=$${i%%.sources}; \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
dir=$${dir##$(SDIR)/}; \
|
|
|
|
|
dir=$(SDIR)/CD$$dir; \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
cp -d $(MIRROR)/README* $$dir/; \
|
2003-07-24 15:37:46 +00:00
|
|
|
|
rm -f $$dir/README $$dir/README.html \
|
|
|
|
|
$$dir/README.CD-manufacture \
|
2004-03-20 17:01:14 -01:00
|
|
|
|
$$dir/README.pgp $$dir/README.mirrors.txt \
|
|
|
|
|
$$dir/README.mirrors.html $$dir/README.non-US; \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
cpp -traditional -undef -P -C -Wall -nostdinc -I $$dir/ \
|
2005-03-03 01:03:45 -01:00
|
|
|
|
-D OMIT_MANUAL="$(OMIT_MANUAL)" \
|
2006-10-05 23:08:09 +00:00
|
|
|
|
-D OFFICIAL_VAL=$(OFFICIAL_VAL) \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
-D OUTPUTtext $(BASEDIR)/data/$(CODENAME)/README.html.in \
|
|
|
|
|
| sed -e 's/%%.//g' > $$dir/README.html ; \
|
|
|
|
|
lynx -dump -force_html $$dir/README.html | todos \
|
|
|
|
|
> $$dir/README.txt ; \
|
|
|
|
|
cpp -traditional -undef -P -C -Wall -nostdinc -I $$dir/ \
|
2005-03-03 01:03:45 -01:00
|
|
|
|
-D OMIT_MANUAL="$(OMIT_MANUAL)" \
|
2006-10-05 23:08:09 +00:00
|
|
|
|
-D OFFICIAL_VAL=$(OFFICIAL_VAL) \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
-D OUTPUThtml $(BASEDIR)/data/$(CODENAME)/README.html.in \
|
|
|
|
|
| sed -e 's/%%.//g' > $$dir/README.html ; \
|
|
|
|
|
rm -f $$dir/README.diskdefines ; \
|
|
|
|
|
mkdir -p $$dir/pics ; \
|
2001-04-24 20:15:56 +00:00
|
|
|
|
cp $(BASEDIR)/data/pics/*.* $$dir/pics/ ; \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
done
|
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
|
# Add the install stuff on the first CD
|
2001-06-13 21:11:37 +00:00
|
|
|
|
installtools: ok bin-doc disks $(MIRROR)/tools $(BDIR)/CD1/tools
|
2000-06-16 23:42:50 +00:00
|
|
|
|
$(BDIR)/CD1/tools:
|
1999-11-11 16:10:37 -01:00
|
|
|
|
@echo "Adding install tools and documentation ..."
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)set -e; \
|
|
|
|
|
for DISK in $(FIRSTDISKS) ; do \
|
2001-04-14 20:57:06 +00:00
|
|
|
|
$(add_files) $(BDIR)/$$DISK $(MIRROR) tools ; \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
mkdir $(BDIR)/$$DISK/install ; \
|
|
|
|
|
if [ -x "$(BASEDIR)/tools/$(CODENAME)/installtools.sh" ]; then \
|
|
|
|
|
$(BASEDIR)/tools/$(CODENAME)/installtools.sh $(BDIR)/$$DISK ; \
|
|
|
|
|
fi ; \
|
|
|
|
|
done
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
2003-07-24 17:41:53 +00:00
|
|
|
|
# Add the disks-arch directories if/where needed
|
2004-07-11 09:34:59 +00:00
|
|
|
|
disks: ok bin-infos $(BDIR)/CD1/dists/$(DI_CODENAME)/main/disks-$(ARCH)
|
|
|
|
|
$(BDIR)/CD1/dists/$(DI_CODENAME)/main/disks-$(ARCH):
|
2003-07-24 17:41:53 +00:00
|
|
|
|
ifdef BOOTDISKS
|
1999-11-11 16:10:37 -01:00
|
|
|
|
@echo "Adding disks-$(ARCH) stuff ..."
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)set -e; \
|
|
|
|
|
for DISK in $(FIRSTDISKS) ; do \
|
2004-07-11 09:34:59 +00:00
|
|
|
|
mkdir -p $(BDIR)/$$DISK/dists/$(DI_CODENAME)/main/disks-$(ARCH) ; \
|
2001-04-14 20:57:06 +00:00
|
|
|
|
$(add_files) \
|
2004-07-11 09:34:59 +00:00
|
|
|
|
$(BDIR)/$$DISK/dists/$(DI_CODENAME)/main/disks-$(ARCH) \
|
2003-07-24 17:41:53 +00:00
|
|
|
|
$(BOOTDISKS) . ; \
|
2002-03-02 18:45:24 -01:00
|
|
|
|
touch $(BDIR)/$$DISK/.disk/kernel_installable ; \
|
2004-07-11 09:34:59 +00:00
|
|
|
|
cd $(BDIR)/$$DISK/dists/$(DI_CODENAME)/main/disks-$(ARCH); \
|
2002-02-13 10:16:56 -01:00
|
|
|
|
rm -rf base-images-*; \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
if [ "$(SYMLINK)" != "" ]; then exit 0; fi; \
|
|
|
|
|
if [ -L current ]; then \
|
2003-02-04 19:40:03 -01:00
|
|
|
|
CURRENT_LINK=`readlink current`; \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
mv $$CURRENT_LINK .tmp_link; \
|
|
|
|
|
rm -rf [0123456789]*; \
|
|
|
|
|
mv .tmp_link $$CURRENT_LINK; \
|
|
|
|
|
elif [ -d current ]; then \
|
|
|
|
|
rm -rf [0123456789]*; \
|
|
|
|
|
fi; \
|
|
|
|
|
done
|
2003-07-24 17:41:53 +00:00
|
|
|
|
endif
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
|
|
|
|
upgrade: ok bin-infos $(BDIR)/upgrade-stamp
|
|
|
|
|
$(BDIR)/upgrade-stamp:
|
|
|
|
|
@echo "Trying to add upgrade* directories ..."
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)if [ -x "$(BASEDIR)/tools/$(CODENAME)/upgrade.sh" ]; then \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
$(BASEDIR)/tools/$(CODENAME)/upgrade.sh; \
|
|
|
|
|
fi
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)if [ -x "$(BASEDIR)/tools/$(CODENAME)/upgrade-$(ARCH).sh" ]; then \
|
2005-06-05 01:21:39 +00:00
|
|
|
|
$(BASEDIR)/tools/$(CODENAME)/upgrade-$(ARCH).sh $(BDIR); \
|
2000-05-18 22:49:02 +00:00
|
|
|
|
fi
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)touch $(BDIR)/upgrade-stamp
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
2005-12-06 23:12:11 -01:00
|
|
|
|
dedicated-src: ok
|
|
|
|
|
$(Q)if [ -e $(BASEDIR)/data/$(CODENAME)/$(ARCH)/extra-sources ]; then \
|
|
|
|
|
echo "Adding extra sources for $(ARCH) onto the last binary disc".; \
|
|
|
|
|
$(Q)$(dedicated-src) $(BDIR) $(ARCH) $(BASEDIR) $(CODENAME) $(MIRROR); \
|
|
|
|
|
fi
|
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
|
## EXTRAS ##
|
|
|
|
|
|
|
|
|
|
# Launch the extras scripts correctly for customizing the CDs
|
|
|
|
|
extras: bin-extras
|
|
|
|
|
bin-extras: ok
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)if [ -z "$(DIR)" -o -z "$(CD)" -o -z "$(ROOTSRC)" ]; then \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
echo "Give me more parameters (DIR, CD and ROOTSRC are required)."; \
|
|
|
|
|
false; \
|
|
|
|
|
fi
|
2000-11-12 21:41:45 -01:00
|
|
|
|
@echo "Adding dirs '$(DIR)' from '$(ROOTSRC)' to '$(BDIR)/CD$(CD)'" ...
|
2001-04-14 20:57:06 +00:00
|
|
|
|
$(Q)$(add_files) $(BDIR)/CD$(CD) $(ROOTSRC) $(DIR)
|
1999-11-11 16:10:37 -01:00
|
|
|
|
src-extras:
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)if [ -z "$(DIR)" -o -z "$(CD)" -o -z "$(ROOTSRC)" ]; then \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
echo "Give me more parameters (DIR, CD and ROOTSRC are required)."; \
|
|
|
|
|
false; \
|
|
|
|
|
fi
|
2000-11-12 21:41:45 -01:00
|
|
|
|
@echo "Adding dirs '$(DIR)' from '$(ROOTSRC)' to '$(SDIR)/CD$(CD)'" ...
|
2001-04-14 20:57:06 +00:00
|
|
|
|
$(Q)$(add_files) $(SDIR)/CD$(CD) $(ROOTSRC) $(DIR)
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
|
|
|
|
## IMAGE BUILDING ##
|
|
|
|
|
|
|
|
|
|
# Get some size info about the build dirs
|
|
|
|
|
imagesinfo: bin-imagesinfo
|
|
|
|
|
bin-imagesinfo: ok
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)for i in $(BDIR)/*.packages; do \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
echo `du -sb $${i%%.packages}`; \
|
|
|
|
|
done
|
|
|
|
|
src-imagesinfo: ok
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)for i in $(SDIR)/*.sources; do \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
echo `du -sb $${i%%.sources}`; \
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Generate a md5sum.txt file listings all files on the CD
|
|
|
|
|
md5list: bin-md5list src-md5list
|
2001-04-14 20:57:06 +00:00
|
|
|
|
bin-md5list: ok packages bin-secured $(BDIR)/CD1/md5sum.txt
|
2000-06-16 23:42:50 +00:00
|
|
|
|
$(BDIR)/CD1/md5sum.txt:
|
1999-11-11 16:10:37 -01:00
|
|
|
|
@echo "Generating md5sum of files from all the binary CDs ..."
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)set -e; \
|
2002-05-05 12:08:27 +00:00
|
|
|
|
if [ "$$FASTSUMS" != "1" ] ; then \
|
2000-08-25 16:54:03 +00:00
|
|
|
|
for file in $(BDIR)/*.packages; do \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
dir=$${file%%.packages}; \
|
|
|
|
|
n=$${dir##$(BDIR)/}; \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
dir=$(BDIR)/CD$$n; \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
test -x "$(HOOK)" && cd $(BDIR) && $(HOOK) $$n before-mkisofs; \
|
|
|
|
|
cd $$dir; \
|
|
|
|
|
find . -follow -type f | grep -v "\./md5sum" | grep -v \
|
|
|
|
|
"dists/stable" | grep -v "dists/frozen" | \
|
2002-04-07 16:26:59 +00:00
|
|
|
|
grep -v "dists/unstable" | xargs $(md5sum) > md5sum.txt ; \
|
2002-05-05 12:08:27 +00:00
|
|
|
|
done \
|
|
|
|
|
else \
|
|
|
|
|
$(fastsums) $(BDIR); \
|
|
|
|
|
fi
|
2001-04-14 20:57:06 +00:00
|
|
|
|
src-md5list: ok sources src-secured $(SDIR)/CD1/md5sum.txt
|
2000-06-16 23:42:50 +00:00
|
|
|
|
$(SDIR)/CD1/md5sum.txt:
|
1999-11-11 16:10:37 -01:00
|
|
|
|
@echo "Generating md5sum of files from all the source CDs ..."
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)set -e; \
|
2002-05-05 12:08:27 +00:00
|
|
|
|
if [ "$$FASTSUMS" != "1" ] ; then \
|
2000-08-25 16:54:03 +00:00
|
|
|
|
for file in $(SDIR)/*.sources; do \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
dir=$${file%%.sources}; \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
dir=$${dir##$(SDIR)/}; \
|
|
|
|
|
dir=$(SDIR)/CD$$dir; \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
cd $$dir; \
|
|
|
|
|
find . -follow -type f | grep -v "\./md5sum" | grep -v \
|
|
|
|
|
"dists/stable" | grep -v "dists/frozen" | \
|
2002-04-07 16:26:59 +00:00
|
|
|
|
grep -v "dists/unstable" | xargs $(md5sum) > md5sum.txt ; \
|
2002-05-05 12:08:27 +00:00
|
|
|
|
done \
|
|
|
|
|
else \
|
|
|
|
|
$(fastsums) $(SDIR); \
|
|
|
|
|
fi
|
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
2001-04-14 20:57:06 +00:00
|
|
|
|
# Generate $CODENAME-secured tree with Packages and Release(.gpg) files
|
|
|
|
|
# from the official tree
|
|
|
|
|
# Complete the Release file from the normal tree
|
|
|
|
|
secured: bin-secured src-secured
|
2002-05-15 21:32:02 +00:00
|
|
|
|
bin-secured: $(BDIR)/secured-stamp
|
|
|
|
|
$(BDIR)/secured-stamp:
|
2001-04-14 20:57:06 +00:00
|
|
|
|
@echo "Generating $(CODENAME)-secured on all the binary CDs ..."
|
|
|
|
|
$(Q)set -e; \
|
|
|
|
|
for file in $(BDIR)/*.packages; do \
|
|
|
|
|
dir=$${file%%.packages}; \
|
|
|
|
|
n=$${dir##$(BDIR)/}; \
|
|
|
|
|
dir=$(BDIR)/CD$$n; \
|
|
|
|
|
cd $$dir; \
|
|
|
|
|
$(add_secured); \
|
|
|
|
|
done
|
2002-05-15 21:32:02 +00:00
|
|
|
|
$(Q)touch $(BDIR)/secured-stamp
|
2001-11-06 23:22:30 -01:00
|
|
|
|
|
2002-05-15 21:32:02 +00:00
|
|
|
|
src-secured: $(SDIR)/secured-stamp
|
|
|
|
|
$(SDIR)/secured-stamp:
|
2001-04-14 20:57:06 +00:00
|
|
|
|
@echo "Generating $(CODENAME)-secured on all the source CDs ..."
|
|
|
|
|
$(Q)set -e; \
|
|
|
|
|
for file in $(SDIR)/*.sources; do \
|
|
|
|
|
dir=$${file%%.sources}; \
|
|
|
|
|
dir=$${dir##$(SDIR)/}; \
|
|
|
|
|
dir=$(SDIR)/CD$$dir; \
|
|
|
|
|
cd $$dir; \
|
|
|
|
|
$(add_secured); \
|
|
|
|
|
done
|
2002-05-15 21:32:02 +00:00
|
|
|
|
$(Q)touch $(SDIR)/secured-stamp
|
2001-04-14 20:57:06 +00:00
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
|
# Generates all the images
|
|
|
|
|
images: bin-images src-images
|
2002-01-28 22:00:17 -01:00
|
|
|
|
|
2005-12-06 23:12:11 -01:00
|
|
|
|
# DOJIGDO actions (for both binaries and source)
|
|
|
|
|
# 0 isofile
|
|
|
|
|
# 1 isofile + jigdo, cleanup_jigdo
|
|
|
|
|
# 2 jigdo, cleanup_jigdo
|
2002-01-28 22:00:17 -01:00
|
|
|
|
#
|
2005-12-06 23:12:11 -01:00
|
|
|
|
bin-images: ok bin-md5list $(OUT)
|
2005-12-08 22:46:42 -01:00
|
|
|
|
$(make_image) "$(BDIR)" "$(ARCH)" "$(OUT)" "$(DOJIGDO)" "$(DEBVERSION)" "$(MIRROR)" "$(MKISOFS)" "$(MKISOFS_OPTS)" "$(JIGDO_OPTS)" "$(jigdo_cleanup)"
|
2005-12-06 23:12:11 -01:00
|
|
|
|
|
|
|
|
|
src-images: ok src-md5list $(OUT)
|
2005-12-10 23:39:10 -01:00
|
|
|
|
$(make_image) "$(SDIR)" "source" "$(OUT)" "$(DOJIGDO)" "$(DEBVERSION)" "$(MIRROR)" "$(MKISOFS)" "$(MKISOFS_OPTS)" "$(JIGDO_OPTS)" "$(jigdo_cleanup)"
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
2005-12-08 21:55:19 -01:00
|
|
|
|
check-number-given:
|
1999-11-11 16:10:37 -01:00
|
|
|
|
@test -n "$(CD)" || (echo "Give me a CD=<num> parameter !" && false)
|
|
|
|
|
|
2005-12-08 21:55:19 -01:00
|
|
|
|
# Generate only one image number $(CD)
|
|
|
|
|
image: bin-image
|
|
|
|
|
bin-image: check-number-given bin-images
|
|
|
|
|
src-image: check-number-given src-images
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
2002-01-28 22:00:17 -01:00
|
|
|
|
#Calculate the md5sums for the images (if available), or get from templates
|
1999-11-11 16:10:37 -01:00
|
|
|
|
imagesums:
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)cd $(OUT); :> MD5SUMS; for file in `find * -name \*.raw`; do \
|
2002-04-07 16:26:59 +00:00
|
|
|
|
$(md5sum) $$file >>MD5SUMS; \
|
2002-01-28 22:00:17 -01:00
|
|
|
|
done; \
|
|
|
|
|
for file in `find * -name \*.template`; do \
|
2002-06-25 08:36:08 +00:00
|
|
|
|
if [ "`tail --bytes=33 "$$file" | head --bytes=1 | od -tx1 -An | sed -e 's/ //g'`" != 05 ]; then \
|
2002-01-28 22:00:17 -01:00
|
|
|
|
echo "Possibly invalid template $$file"; exit 1; \
|
|
|
|
|
fi; \
|
|
|
|
|
grep -q " $${file%%.template}.raw"'$$' MD5SUMS \
|
2002-06-25 08:36:08 +00:00
|
|
|
|
|| echo "`tail --bytes=26 "$$file" | head --bytes=16 | od -tx1 -An | sed -e 's/ //g'` $${file%%.template}.raw" >>MD5SUMS; \
|
2002-01-28 22:00:17 -01:00
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Likewise, the file size can be extracted from the .template with:
|
2002-06-25 08:36:08 +00:00
|
|
|
|
# tail --bytes=32 $$file | head --bytes=6 | od -tx1 -An \
|
2002-01-28 22:00:17 -01:00
|
|
|
|
# | tr ' abcdef' '\nABCDEF' | tac | tr '\n' ' ' \
|
|
|
|
|
# | sed -e 's/ //g; s/^.*$/ibase=16 & /' | tr ' ' '\n' | bc
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
|
|
|
|
## MISC TARGETS ##
|
|
|
|
|
|
|
|
|
|
tasks: ok $(BASEDIR)/data/$(CODENAME)/master
|
|
|
|
|
$(master2tasks)
|
|
|
|
|
|
|
|
|
|
readme:
|
|
|
|
|
sensible-pager $(BASEDIR)/README
|
|
|
|
|
|
|
|
|
|
conf:
|
|
|
|
|
sensible-editor $(BASEDIR)/CONF.sh
|
|
|
|
|
|
2005-12-06 23:12:11 -01:00
|
|
|
|
mirrorcheck-binary: ok
|
|
|
|
|
rm -f $(BDIR)/md5-check
|
|
|
|
|
$(Q)$(grab_md5) $(MIRROR) $(ARCH) $(CODENAME) $(BDIR)/md5-check
|
|
|
|
|
if [ -n "$(NONUS)" ]; then \
|
|
|
|
|
$(grab_md5) $(NONUS) $(ARCH) $(CODENAME) $(BDIR)/md5-check; \
|
|
|
|
|
fi
|
|
|
|
|
$(Q)if [ -e $(BASEDIR)/data/$(CODENAME)/$(ARCH)/extra-sources ]; then \
|
|
|
|
|
echo "Extra dedicated source added; need to grab source MD5 info too"; \
|
|
|
|
|
$(Q)$(grab_md5) $(MIRROR) source $(CODENAME) $(BDIR)/md5-check; \
|
|
|
|
|
if [ -n "$(NONUS)" ]; then \
|
|
|
|
|
$(grab_md5) $(NONUS) source $(CODENAME) $(BDIR)/md5-check; \
|
|
|
|
|
fi; \
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
mirrorcheck-source: ok
|
|
|
|
|
rm -f $(SDIR)/md5-check
|
|
|
|
|
$(Q)$(grab_md5) $(MIRROR) source $(CODENAME) $(SDIR)/md5-check
|
|
|
|
|
if [ -n "$(NONUS)" ]; then \
|
|
|
|
|
$(grab_md5) $(NONUS) source $(CODENAME) $(SDIR)/md5-check; \
|
|
|
|
|
fi
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
2004-08-12 03:57:24 +00:00
|
|
|
|
update-popcon:
|
2004-06-29 22:21:28 +00:00
|
|
|
|
rm -f popcon-inst
|
|
|
|
|
( \
|
|
|
|
|
echo '/*' ; \
|
|
|
|
|
echo ' Popularity Contest results' ; \
|
|
|
|
|
echo ' See the README for details on updating.' ; \
|
|
|
|
|
echo '' ; \
|
2004-08-12 03:57:24 +00:00
|
|
|
|
echo ' Last update: $(shell date)' ; \
|
2004-06-29 22:21:28 +00:00
|
|
|
|
echo '*/' ; \
|
|
|
|
|
echo '' ; \
|
2004-08-12 03:57:24 +00:00
|
|
|
|
) > tasks/popularity-contest-$(CODENAME)
|
2004-06-29 22:21:28 +00:00
|
|
|
|
wget --output-document popcon-inst \
|
|
|
|
|
http://popcon.debian.org/main/by_inst \
|
|
|
|
|
http://popcon.debian.org/contrib/by_inst
|
|
|
|
|
grep -h '^[^#]' popcon-inst | egrep -v '(Total|-----)' | \
|
2004-08-12 03:57:24 +00:00
|
|
|
|
sort -rn -k3,3 -k7,7 -k4,4 | grep -v kernel-source | \
|
|
|
|
|
awk '{print $$2}' >> tasks/popularity-contest-$(CODENAME)
|
2004-06-29 22:41:38 +00:00
|
|
|
|
rm -f popcon-inst
|
2004-06-29 22:21:28 +00:00
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
|
# Little trick to simplify things
|
|
|
|
|
official_images: bin-official_images src-official_images
|
2005-12-06 23:12:11 -01:00
|
|
|
|
bin-official_images: ok bootable upgrade dedicated-src bin-images
|
2000-05-18 22:49:02 +00:00
|
|
|
|
src-official_images: ok src-doc src-images
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
|
|
|
|
$(CODENAME)_status: ok init
|
|
|
|
|
@echo "Using the provided status file for $(CODENAME)-$(ARCH) ..."
|
2000-08-25 16:54:03 +00:00
|
|
|
|
$(Q)cp $(BASEDIR)/data/$(CODENAME)/status.$(ARCH) $(ADIR)/status \
|
1999-11-11 16:10:37 -01:00
|
|
|
|
2>/dev/null || $(MAKE) status || $(MAKE) correctstatus
|