2003-03-08 13:08:00 -01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Generate a list of packages required for debian-installer
|
2003-05-10 15:16:08 +00:00
|
|
|
# This script makes use of the following variables that need to be preset:
|
|
|
|
# MIRROR, CODENAME
|
2003-03-08 13:08:00 -01:00
|
|
|
|
|
|
|
ARCHS="alpha arm hppa hurd-i386 i386 ia64 m68k mips mipsel powerpc s390 sparc sh"
|
|
|
|
DATE=`date`
|
|
|
|
cat > debian-installer << EOF
|
|
|
|
/* List of udebs to be included so that debian-installer works fine
|
|
|
|
*
|
|
|
|
* This list can be generated with the command:
|
2003-05-10 15:16:08 +00:00
|
|
|
* ../tools/generate_di_list
|
2003-03-08 13:08:00 -01:00
|
|
|
*
|
|
|
|
* Last update: $DATE
|
|
|
|
*/
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
for arch in $ARCHS ; do
|
2003-07-24 15:21:05 +00:00
|
|
|
cat >> debian-installer << EOF
|
2003-03-08 13:08:00 -01:00
|
|
|
#ifdef ARCH_$arch
|
|
|
|
EOF
|
|
|
|
|
2003-07-24 15:21:05 +00:00
|
|
|
grep-dctrl -n -s Package '' \
|
2003-05-10 15:16:08 +00:00
|
|
|
$MIRROR/dists/$CODENAME/main/debian-installer/binary-$arch/Packages \
|
|
|
|
>> debian-installer
|
2003-03-08 13:08:00 -01:00
|
|
|
|
2003-07-24 15:21:05 +00:00
|
|
|
cat >> debian-installer << EOF
|
2003-03-08 13:08:00 -01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
done
|